fix head fa access issue
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Successful in 1m24s

This commit is contained in:
root
2026-09-06 20:49:25 -04:00
parent 2ad7dc1170
commit 485341875a
7 changed files with 280 additions and 6 deletions
@@ -46,8 +46,10 @@ class GrantRequestedRolePageAccess extends Migration
);
$this->grantNavItemsToRoles(
['head of fa', 'head_of_fa', 'head of department (finance)', 'head of department finance'],
$financialNavItems
['head fa', 'head of fa', 'head_of_fa', 'head of department (finance)', 'head of department finance'],
array_merge($financialNavItems, [
['url' => 'admin/enrollment/new-students'],
])
);
$this->grantNavItemsToRoles(
@@ -80,8 +82,9 @@ class GrantRequestedRolePageAccess extends Migration
);
$this->grantPermissionsToRoles(
['head of fa', 'head_of_fa', 'head of department (finance)', 'head of department finance'],
['head fa', 'head of fa', 'head_of_fa', 'head of department (finance)', 'head of department finance'],
[
'view_new_students' => ['read' => true],
'view_invoice' => ['read' => true],
'view_payment' => ['read' => true],
'view_financial_reports' => ['create' => true, 'read' => true, 'update' => true],