Changes for page Right

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

From version 2.1
edited by Thomas Mortagne
on 2016/02/24 16:15
Change comment: There is no comment for this version
To version 4.1
edited by Thomas Mortagne
on 2016/02/24 16:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,11 @@
1 1  {{velocity}}
2 -$services.security.authorization.hasAccess('admin', 'wiki:notexisting')
3 -$services.security.authorization.hasAccess('admin', 'wiki:xwiki')
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')**
4 4  {{/velocity}}