<
From version < 13.1 >
edited by Denis Gervalle
on 2014/06/18
To version < 14.1 >
edited by Denis Gervalle
on 2014/06/18
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -50,10 +50,10 @@
50 50  #if ($services.security.authorization.hasAccess("edit"))
51 51  ... show some UI that require edit access on the current document by the current user ...
52 52  #end
53 -#if ($services.security.authorization.hasAccess("edit", "xwiki:Sandbox.TestPage1")
53 +#if ($services.security.authorization.hasAccess("edit", "xwiki:Sandbox.TestPage1"))
54 54  ... show some UI that require edit access on Sandbox.TestPage1 document by the current user ...
55 55  #end
56 -#if ($services.security.authorization.hasAccess("edit", "xwiki:XWiki.User1", "xwiki:Sandbox.TestPage1")
56 +#if ($services.security.authorization.hasAccess("edit", "xwiki:XWiki.User1", "xwiki:Sandbox.TestPage1"))
57 57  ... show some UI that require edit access on Sandbox.TestPage1 document by XWiki.User1 ...
58 58  #end
59 59  {{/code}}

Get Connected