Changes for page Right

Last modified by Thomas Mortagne on 2016/02/24 16:18

From version 1.1
edited by Thomas Mortagne
on 2016/02/24 16:14
Change comment: There is no comment for this version
To version 3.1
edited by Thomas Mortagne
on 2016/02/24 16:16
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,11 @@
1 1  {{velocity}}
2 -$services.security.authorization.hasAccess('admin', 'wiki:notexisting')
2 +Admin right of user $xcontext.user:
3 +
4 +wiki does not exist: $services.security.authorization.hasAccess('admin', 'wiki:notexisting')
5 +main wiki: $services.security.authorization.hasAccess('admin', 'wiki:xwiki')
6 +
7 +Admin right of user superadmin:
8 +
9 +wiki does not exist: $services.security.authorization.hasAccess('admin', 'superadmin', 'wiki:notexisting')
10 +main wiki: $services.security.authorization.hasAccess('admin', 'superadmin', 'wiki:xwiki')
3 3  {{/velocity}}