LP#1977761: (follow-up) enforce use of the permission at API level
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 01:46:43 +0000 (21:46 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 01:46:43 +0000 (21:46 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Financials.pm

index f5680f2..597faa6 100644 (file)
@@ -1378,7 +1378,7 @@ sub process_fiscal_rollover {
 
     my $e = new_editor(xact=>1, authtoken=>$auth);
     return $e->die_event unless $e->checkauth;
-    return $e->die_event unless $e->allowed('ADMIN_FUND', $org_id);
+    return $e->die_event unless $e->allowed('ADMIN_FUND_ROLLOVER', $org_id);
     $options ||= {};
 
     my $combined = ($self->api_name =~ /combined/);