LP#1498155 - Also remove user-assigned SET_CIRC_MISSING perm.
authorChris Sharp <csharp@georgialibraries.org>
Sat, 20 Aug 2016 18:25:07 +0000 (14:25 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 25 May 2017 13:21:46 +0000 (09:21 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.remove_SET_CIRC_MISSING.sql

index a7f2911..faa2a6b 100644 (file)
@@ -4,6 +4,10 @@ BEGIN;
 DELETE FROM permission.grp_perm_map where perm in 
 (select id from permission.perm_list where code='SET_CIRC_MISSING');
 
+--delete all instances from permission.usr_perm_map too
+DELETE FROM permission.usr_perm_map where perm in
+(select id from permission.perm_list where code='SET_CIRC_MISSING');
+
 --delete from permission.perm_list
 DELETE FROM permission.perm_list where code='SET_CIRC_MISSING';