Skip to content

Commit

Permalink
Fixes several instances of property and const use
Browse files Browse the repository at this point in the history
Signed-off-by: Joey Smith <[email protected]>

Signed-off-by: Joey Smith <[email protected]>
  • Loading branch information
tyrsson committed Nov 27, 2023
1 parent 35b5e36 commit 317229f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Sources/Actions/Admin/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1775,39 +1775,39 @@ public static function setPermissionLevel($level, $group, $profile = 'null'): vo
foreach (self::getPermissions() as $permission => $perm_info) {
if (isset($perm_info['group_level'])) {
switch ($perm_info['group_level']) {
case GROUP_LEVEL_RESTRICT:
case self::GROUP_LEVEL_RESTRICT:
$group_levels[$perm_info['scope']]['restrict'][] = $permission;
// no break

case GROUP_LEVEL_STANDARD:
case self::GROUP_LEVEL_STANDARD:
$group_levels[$perm_info['scope']]['standard'][] = $permission;
// no break

case GROUP_LEVEL_MODERATOR:
case self::GROUP_LEVEL_MODERATOR:
$group_levels[$perm_info['scope']]['moderator'][] = $permission;
// no break

case GROUP_LEVEL_MAINTENANCE:
case self::GROUP_LEVEL_MAINTENANCE:
$group_levels[$perm_info['scope']]['maintenance'][] = $permission;
break;
}
}

if (isset($perm_info['board_level'])) {
switch ($perm_info['board_level']) {
case BOARD_LEVEL_STANDARD:
case self::BOARD_LEVEL_STANDARD:
$group_levels[$perm_info['scope']]['standard'][] = $permission;
// no break

case BOARD_LEVEL_LOCKED:
case self::BOARD_LEVEL_LOCKED:
$group_levels[$perm_info['scope']]['locked'][] = $permission;
// no break

case BOARD_LEVEL_PUBLISH:
case self::BOARD_LEVEL_PUBLISH:
$group_levels[$perm_info['scope']]['publish'][] = $permission;
// no break

case BOARD_LEVEL_FREE:
case self::BOARD_LEVEL_FREE:
$group_levels[$perm_info['scope']]['free'][] = $permission;
break;
}
Expand Down

0 comments on commit 317229f

Please sign in to comment.