Skip to content
Snippets Groups Projects
Commit 034c42b7 authored by JediKev's avatar JediKev
Browse files

perms: Alphabetize Role/Staff Permissions

This alphabetizes all Role and Staff Permissions.
parent c20ed47a
No related branches found
No related tags found
No related merge requests found
......@@ -320,6 +320,16 @@ class RolePermission {
}
static function allPermissions() {
static $sorted = false;
if (!$sorted) {
// Sort permissions in alphabetical order
foreach (static::$_permissions as $k => $v) {
asort(static::$_permissions[$k]);
}
$sorted = true;
}
return static::$_permissions;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment