From ff04a663c9f37a17a0ceabcabae6e5da62c04873 Mon Sep 17 00:00:00 2001 From: Ryan Blenis Date: Fri, 22 Nov 2019 22:06:25 -0500 Subject: [PATCH] Only show "My Plugins" admin page to site admins --- views/default.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index aef176a3..25ff03ca 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -1361,8 +1361,8 @@ QV('p2ServerActionsVersion', siteRights & 16); QV('MainMenuMyFiles', siteRights & 8); QV('LeftMenuMyFiles', siteRights & 8); - QV('MainMenuMyPlugins', (pluginHandler != null)); - QV('LeftMenuMyPlugins', (pluginHandler != null)); + QV('MainMenuMyPlugins', ((pluginHandler != null) && (siteRights & 0xFFFFFFFF))); + QV('LeftMenuMyPlugins', ((pluginHandler != null) && (siteRights & 0xFFFFFFFF))); if (((siteRights & 8) == 0) && (xxcurrentView == 5)) { setDialogMode(0); go(1); } if (currentNode != null) { gotoDevice(currentNode._id, xxcurrentView, true); }