Only show "My Plugins" admin page to site admins

This commit is contained in:
Ryan Blenis 2019-11-22 22:06:25 -05:00
parent fdca0915c5
commit 09ac73c738

View File

@ -1361,8 +1361,8 @@
QV('p2ServerActionsVersion', siteRights & 16); QV('p2ServerActionsVersion', siteRights & 16);
QV('MainMenuMyFiles', siteRights & 8); QV('MainMenuMyFiles', siteRights & 8);
QV('LeftMenuMyFiles', siteRights & 8); QV('LeftMenuMyFiles', siteRights & 8);
QV('MainMenuMyPlugins', (pluginHandler != null)); QV('MainMenuMyPlugins', ((pluginHandler != null) && (siteRights & 0xFFFFFFFF)));
QV('LeftMenuMyPlugins', (pluginHandler != null)); QV('LeftMenuMyPlugins', ((pluginHandler != null) && (siteRights & 0xFFFFFFFF)));
if (((siteRights & 8) == 0) && (xxcurrentView == 5)) { setDialogMode(0); go(1); } if (((siteRights & 8) == 0) && (xxcurrentView == 5)) { setDialogMode(0); go(1); }
if (currentNode != null) { gotoDevice(currentNode._id, xxcurrentView, true); } if (currentNode != null) { gotoDevice(currentNode._id, xxcurrentView, true); }