Only show "My Plugins" admin page to site admins
Ryan Blenis committed
Nov 22, 2019 at 22:06 UTC
09ac73c73868a0b9f19282aad19354085879f621
1 file changed
+2
-2
views/default.handlebars
+2
-2
@@ -1361,8 +1361,8 @@
1361
QV('p2ServerActionsVersion', siteRights & 16);
1362
QV('MainMenuMyFiles', siteRights & 8);
1363
QV('LeftMenuMyFiles', siteRights & 8);
1364
- QV('MainMenuMyPlugins', (pluginHandler != null));
1365
- QV('LeftMenuMyPlugins', (pluginHandler != null));
1364
+ QV('MainMenuMyPlugins', ((pluginHandler != null) && (siteRights & 0xFFFFFFFF)));
1365
+ QV('LeftMenuMyPlugins', ((pluginHandler != null) && (siteRights & 0xFFFFFFFF)));
1366
if (((siteRights & 8) == 0) && (xxcurrentView == 5)) { setDialogMode(0); go(1); }
1367
if (currentNode != null) { gotoDevice(currentNode._id, xxcurrentView, true); }
1368