Enhanced admin panel

This commit is contained in:
Constantin Graf
2024-04-26 14:39:36 +02:00
committed by Constantin Graf
parent 42ad5e004a
commit 0bf8a25d64
15 changed files with 258 additions and 77 deletions

View File

@@ -59,10 +59,14 @@ class PermissionStore
?->membership
?->role;
if ($role === null) {
return [];
}
/** @var Role|null $roleObj */
$roleObj = Jetstream::findRole($role);
return $role !== null ? ($roleObj?->permissions ?? []) : [];
return $roleObj?->permissions ?? [];
}
/**