LP1977761: Create fund rollover perm
authorTiffany Little <tlittle@georgialibraries.org>
Mon, 6 Jun 2022 18:05:15 +0000 (14:05 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 7 Jun 2022 13:34:31 +0000 (09:34 -0400)
This patch adds a new permission to perform fund propagation and rollover.

Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds-manager.component.ts
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.acqrolloverperm.sql [new file with mode: 0644]

index 44a7468..5d5df0f 100644 (file)
@@ -142,7 +142,7 @@ export class FundsManagerComponent extends AdminPageComponent implements OnInit,
     checkRolloverPerms() {
         this.canRollover = false;
 
-        this.perm2.hasWorkPermAt(['ADMIN_FUND'], true).then(permMap => {
+        this.perm2.hasWorkPermAt(['ADMIN_FUND_ROLLOVER'], true).then(permMap => {
             Object.keys(permMap).forEach(key => {
                 if (permMap[key].length > 0) {
                     this.canRollover = true;
index b953f80..b729915 100644 (file)
@@ -1965,8 +1965,16 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
     'Allow the user to update a record note', 'ppl', 'description')),
  ( 635, 'DELETE_RECORD_NOTE', oils_i18n_gettext(635,
     'Allow the user to delete a record note', 'ppl', 'description')),
- ( 636, 'ADMIN_STUDENT_CARDS', oils_i18n_gettext(636,
+ ( 640, 'ADMIN_STUDENT_CARDS', oils_i18n_gettext(636,
     'Modify student card settings', 'ppl', 'description'))
+ ( 636, 'ADMIN_STAFF_PORTAL_PAGE', oils_i18n_gettext( 636,
+    'Update the staff client portal page', 'ppl', 'description' )),
+ ( 637, 'UPLOAD_COVER_IMAGE', oils_i18n_gettext(637,
+    'Upload local cover images for added content.', 'ppl', 'description')),
+ ( 638, 'RUN_SIMPLE_REPORTS', oils_i18n_gettext(638,
+    'Build and run simple reports', 'ppl', 'description')),
+ ( 639, 'ADMIN_FUND_ROLLOVER', oils_i18n_gettext(639,
+    'Allow the user to perform fund propagation and rollover', 'ppl', 'description'))    
 ;
 
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acqrolloverperm.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acqrolloverperm.sql
new file mode 100644 (file)
index 0000000..cb08020
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN;
+
+INSERT INTO permission.perm_list ( id, code, description )
+    VALUES (
+        639,
+        'ADMIN_FUND_ROLLOVER',
+        oils_i18n_gettext(
+            639,
+            'Allow a user to perform fund propagation and rollover',
+            'ppl',
+            'description'
+        )
+    );
+
+COMMIT;
\ No newline at end of file