Skip to content

Commit

Permalink
Fix forum admin permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonhasacat committed Mar 23, 2024
1 parent 5738129 commit 3610bb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/Classes/SMFHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ public static function setPermissions($cid)

if (RoleHelper::isVATUSAStaff($cid, true)) {
$primary = static::findGroup("VATUSA Staff");
if (RoleHelper::hasRole($user->cid, "ZHQ", "US1")
|| RoleHelper::hasRole($user->cid, "ZHQ", "US6")) {
if (RoleHelper::hasRole($user->cid, "ZHQ", "US1") ||
RoleHelper::hasRole($user->cid, "ZHQ", "US2") ||
RoleHelper::hasRole($user->cid, "ZHQ", "US3") ||
RoleHelper::hasRole($user->cid, "ZHQ", "US4") ||
RoleHelper::hasRole($user->cid, "ZHQ", "US6")) {
$secondary[] = static::findGroup("Administrator");
}
}
Expand Down

0 comments on commit 3610bb8

Please sign in to comment.