Skip to content

Commit

Permalink
Supplies expected keys in 2nd arg of integrate_load_permissions hook
Browse files Browse the repository at this point in the history
Fixes #8007

Signed-off-by: Jon Stovell <jonstovell@gmail.com>
  • Loading branch information
Sesquipedalian committed Jan 24, 2024
1 parent cc65418 commit 30a75c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Actions/Admin/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3453,6 +3453,7 @@ protected static function integrateLoadPermissions(): void
}

// Provide a practical way to modify permissions.
$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 30a75c7

Please sign in to comment.