From 2e39bf8df39cc5bdd33898132df18c6f9a1156af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Zermatten?= Date: Thu, 5 Dec 2024 16:51:46 +0000 Subject: [PATCH] fix: untie permission from removed module --- code/web/sys/DBMaintenance/version_updates/24.12.00.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/web/sys/DBMaintenance/version_updates/24.12.00.php b/code/web/sys/DBMaintenance/version_updates/24.12.00.php index 0605973037..92d097b2ec 100644 --- a/code/web/sys/DBMaintenance/version_updates/24.12.00.php +++ b/code/web/sys/DBMaintenance/version_updates/24.12.00.php @@ -84,7 +84,7 @@ function getUpdates24_12_00(): array { 'title' => 'Create LibKey Permissions', 'description' => 'Add an LibKey permission section containing the Administer LibKey Settings permission', 'sql' => [ - "INSERT INTO permissions (name, sectionName, requiredModule, weight, description) VALUES ( 'Administer LibKey Settings','LibKey','LibKey', 0, 'Allows the user to administer the integration with LibKey')", + "INSERT INTO permissions (name, sectionName, weight, description) VALUES ( 'Administer LibKey Settings','LibKey', 0, 'Allows the user to administer the integration with LibKey')", "INSERT INTO role_permissions(roleId, permissionId) VALUES ((SELECT roleId from roles where name='opacAdmin'), (SELECT id from permissions where name='Administer LibKey Settings'))", ], ],// create_libkey_permissions