[owncloud-devel] Make app only visible to admins

Christopher Kreitz christopher.kreitz at macrocom.de
Tue May 5 12:25:52 GMT 2015

Thanks a lot.

I modified my app.php to only load the menu-entry, if the logged in User
member of the admin group.

> ...
> if(OC_Group::inGroup(OC_User::getUser(), 'admin')){
>        \OCP\App::addNavigationEntry([
> ...

It is not exactly, what i prefered, but it works.



Am 05.05.2015 um 13:46 schrieb Bernhard Posselt:
> ou can ofc also limit all requests to admins and only
> create the navigation entry if the user is an admin. Just add an if
> around the section where you add the navigation menu. For further

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4255 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20150505/5bf74a89/attachment.p7s>

More information about the Devel mailing list