LP1498155 - Remove SET_CIRC_MISSING permission.
authorJosh Stompro <stomproj@larl.org>
Fri, 13 Nov 2015 03:53:36 +0000 (21:53 -0600)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 25 May 2017 13:21:42 +0000 (09:21 -0400)
SET_CIRC_MISSING isn't used anywhere, remove it to avoid
confusing it with MARK_ITEM_MISSING permission.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.remove_SET_CIRC_MISSING.sql [new file with mode: 0644]

index a657039..e3c34b4 100644 (file)
@@ -573,8 +573,6 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
     'Allow a user to record payments in the Billing Interface', 'ppl', 'description' )),
  ( 34, 'SET_CIRC_LOST', oils_i18n_gettext( 34, 
     'Allow a user to mark an item as ''lost''', 'ppl', 'description' )),
- ( 35, 'SET_CIRC_MISSING', oils_i18n_gettext( 35, 
-    'Allow a user to mark an item as ''missing''', 'ppl', 'description' )),
  ( 36, 'SET_CIRC_CLAIMS_RETURNED', oils_i18n_gettext( 36, 
     'Allow a user to mark an item as ''claims returned''', 'ppl', 'description' )),
  ( 37, 'CREATE_TRANSACTION', oils_i18n_gettext( 37, 
@@ -2096,7 +2094,6 @@ INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
                        'SET_CIRC_CLAIMS_RETURNED',
                        'SET_CIRC_CLAIMS_RETURNED.override',
                        'SET_CIRC_LOST',
-                       'SET_CIRC_MISSING',
                        'UPDATE_BILL_NOTE',
                        'UPDATE_PATRON_CLAIM_NEVER_CHECKED_OUT_COUNT',
                        'UPDATE_PATRON_CLAIM_RETURN_COUNT',
@@ -2254,7 +2251,6 @@ INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
                        'SET_CIRC_CLAIMS_RETURNED',
                        'SET_CIRC_CLAIMS_RETURNED.override',
                        'SET_CIRC_LOST',
-                       'SET_CIRC_MISSING',
                        'UNBAR_PATRON',
                        'UPDATE_BILL_NOTE',
                        'UPDATE_NON_CAT_TYPE',
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.remove_SET_CIRC_MISSING.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.remove_SET_CIRC_MISSING.sql
new file mode 100644 (file)
index 0000000..a7f2911
--- /dev/null
@@ -0,0 +1,10 @@
+BEGIN;
+
+--delete all instances from permission.grp_perm_map first
+DELETE FROM permission.grp_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';
+
+COMMIT;