From 88ce91ee43988ed50887dddf5a8b0f8e59a433c4 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 5 Dec 2019 11:09:43 -0500 Subject: [PATCH] [Menu] Do not show Data Query Tool menu item with data dict permission The default schema incorrectly added a LorisMenuPermissions item for the Data Query Tool if the user had the data_dict_view permission in the default schema. This removes that line, as the correct permission (according to the code) is the dataquery_view permission (which is separately already included in the default schema.) --- SQL/0000-00-02-Menus.sql | 5 ----- 1 file changed, 5 deletions(-) diff --git a/SQL/0000-00-02-Menus.sql b/SQL/0000-00-02-Menus.sql index 10f8743e524..4cc947015d6 100644 --- a/SQL/0000-00-02-Menus.sql +++ b/SQL/0000-00-02-Menus.sql @@ -140,11 +140,6 @@ INSERT INTO LorisMenuPermissions (MenuID, PermID) INSERT INTO LorisMenuPermissions (MenuID, PermID) SELECT m.ID, p.PermID FROM permissions p CROSS JOIN LorisMenu m WHERE p.code='data_entry' AND m.Label='Statistics'; - -INSERT INTO LorisMenuPermissions (MenuID, PermID) - SELECT m.ID, p.PermID FROM permissions p CROSS JOIN LorisMenu m WHERE p.code='data_dict_view' AND m.Label='Data Query Tool'; - - INSERT INTO LorisMenuPermissions (MenuID, PermID) SELECT m.ID, p.PermID FROM permissions p CROSS JOIN LorisMenu m WHERE p.code='data_dict_view' AND m.Label='Data Dictionary';