Skip to content

Commit

Permalink
Let ADM have VATUSA Staff level permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonhasacat committed Apr 1, 2024
1 parent 75fba14 commit c44c6a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Helpers/ACLFlags.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public function __construct($user = null)
if ($user == null) {
return;
}
if ($user->rating == 12) {
$this->isVATUSAStaff = true;
}
foreach ($user->roles()->get() as $role) {
if (in_array($role->role, ['US1', 'US2', 'US3', 'US4', 'US5', 'US6', 'US7', 'US8', 'US9'])) {
$this->isVATUSAStaff = true;
Expand Down

0 comments on commit c44c6a6

Please sign in to comment.