diff options
author | Simon Rettberg | 2023-07-04 14:10:46 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-07-04 14:10:46 +0200 |
commit | 13c22169624e5633977ed62b95aed844301881ac (patch) | |
tree | ff87f8ddd057070c898aa6c73f0779f094f5608b /modules-available/permissionmanager/install.inc.php | |
parent | Update phpStorm: Disable "accidental + instead of ." warning (diff) | |
download | slx-admin-13c22169624e5633977ed62b95aed844301881ac.tar.gz slx-admin-13c22169624e5633977ed62b95aed844301881ac.tar.xz slx-admin-13c22169624e5633977ed62b95aed844301881ac.zip |
[systemstatus] Show (estimate) of last time updates were installed
Plus other minor tweaks, like message on main page.
Diffstat (limited to 'modules-available/permissionmanager/install.inc.php')
-rw-r--r-- | modules-available/permissionmanager/install.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/permissionmanager/install.inc.php b/modules-available/permissionmanager/install.inc.php index a1533ac3..40b153ad 100644 --- a/modules-available/permissionmanager/install.inc.php +++ b/modules-available/permissionmanager/install.inc.php @@ -123,8 +123,6 @@ if (Database::exec("INSERT INTO `role` (roleid, rolename, builtin, roledescripti (3,'Prüfungsadmin', 1, 'Kann E-Prüfungen verwalten, Prüfungsmodus einschalten, etc.'), (4,'Lesezugriff', 1, 'Kann auf die meisten Seiten zugreifen, jedoch keine Änderungen vornehmen') ON DUPLICATE KEY UPDATE rolename = VALUES(rolename), builtin = 1, roledescription = VALUES(roledescription)") !== false) { - // Old ruleset accidentally gave write permissions to the read-only role - Database::exec("DELETE FROM role_x_permission WHERE roleid = 4 AND permissionid = 'news.*'"); // Assign roles to location (all) Database::exec("DELETE FROM role_x_location WHERE roleid IN (1,2,3,4)"); Database::exec("INSERT INTO `role_x_location` VALUES (1,NULL),(2,NULL),(3,NULL),(4,NULL)"); @@ -196,6 +194,7 @@ if (Database::exec("INSERT INTO `role` (roleid, rolename, builtin, roledescripti (2,'locations.*'), (2,'minilinux.*'), (2,'news.*'), + (4,'passthrough.*'), (2,'permissionmanager.locations.view'), (2,'permissionmanager.roles.view'), (2,'permissionmanager.users.view'), |