uac.pm: add admin permission

admin permission is no more dependent on the name
of the role, but can be assigned to any role.
Users assigned to admin role have all permissions.
This commit is contained in:
Milan
2023-03-21 23:11:33 +01:00
parent 92554ebe95
commit 2c0bf5887b
4 changed files with 23 additions and 8 deletions

View File

@@ -300,3 +300,7 @@ CREATE TABLE `calcms_help_texts` (
PRIMARY KEY (`id`));
ALTER TABLE `calcms_roles` ADD COLUMN `edit_help_texts` INT(1) UNSIGNED NOT NULL;
-- admin roles
ALTER TABLE `calcms_roles` ADD COLUMN `admin` INT(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `level`;
update calcms_roles set admin=1 where role = 'Admin';