From: Tiffany Little Date: Mon, 6 Jun 2022 18:05:15 +0000 (-0400) Subject: LP1977761: Create fund rollover perm X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7ec9ded2422c939db8b4d34e5b7bc4c02c22096d;p=Evergreen.git LP1977761: Create fund rollover perm This patch adds a new permission to perform fund propagation and rollover. Signed-off-by: Tiffany Little Signed-off-by: Lindsay Stratton Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds-manager.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds-manager.component.ts index 44a7468b2e..5d5df0f72b 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds-manager.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds-manager.component.ts @@ -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; diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 5f104f5741..4ecd2b7bf8 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1972,7 +1972,9 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES ( 639, 'ADMIN_OPENATHENS', oils_i18n_gettext(639, 'Allow a user to administer OpenAthens authentication service', 'ppl', 'description')), ( 640, 'ACCESS_ANGULAR_CIRC', oils_i18n_gettext(640, - 'Allow a user to access the experimental Angular circulation interfaces', 'ppl', 'description')) + 'Allow a user to access the experimental Angular circulation interfaces', 'ppl', 'description')), + ( 641, 'ADMIN_FUND_ROLLOVER', oils_i18n_gettext(641, + 'Allow the user to perform fund propagation and rollover', 'ppl', 'description')) ; SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000); 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 index 0000000000..cb08020a26 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acqrolloverperm.sql @@ -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