Skip to content

Commit

Permalink
Supplies expected keys in 1st arg of integrate_load_permissions hook
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
  • Loading branch information
Sesquipedalian committed Jan 24, 2024
1 parent 30a75c7 commit 2f11cfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Actions/Admin/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3453,7 +3453,9 @@ protected static function integrateLoadPermissions(): void
}

// Provide a practical way to modify permissions.
self::$permission_groups['membergroup'] = &self::$permission_groups['global'];
$permissions_by_scope['membergroup'] = &$permissions_by_scope['global'];

IntegrationHook::call('integrate_load_permissions', [&self::$permission_groups, &$permissions_by_scope, &self::$left_permission_groups, &$hidden_permissions, &$relabel_permissions]);

// If the hook made changes, sync them back to our master list.
Expand Down

0 comments on commit 2f11cfd

Please sign in to comment.