Hello.

For 1, you need to modify XWiki.UserIndexUIX to add a check on the
administrator right (you could add $isAdmin and that's all).
See:
https://github.com/xwiki/xwiki-platform/blob/4f7e47962ad5867d85f16c2c0452fb25ab69d4e6/xwiki-platform-core/xwiki-platform-user/xwiki-platform-user-directory/xwiki-platform-user-directory-ui/src/main/resources/XWiki/UserIndexUIX.xml#L118-L118

For 2, you need to implement some UI extensions, see:
http://platform.xwiki.org/xwiki/bin/view/ExtensionPoint/DrawerItem

Documentation:
http://extensions.xwiki.org/xwiki/bin/view/Extension/UIExtension+Module

Thanks,


2016-05-19 5:33 GMT+02:00 superuser <[email protected]>:

> I tried to play around with drawer.vm but only in vain. I need to:
> 1] display 'User Index' from drawer only to administrator (not possible by
> 'administer page/parent' option)
> 2] add other applications e.g. 'Invitation', 'sandbox' to drawer
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Display-User-Index-in-drawer-only-to-administrators-tp7599503.html
> Sent from the XWiki- Dev mailing list archive at Nabble.com.
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Guillaume Delhumeau ([email protected])
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to