feat: complete jobcard management workflows and UI
This commit is contained in:
@@ -48,6 +48,7 @@ final class RoleRecord
|
||||
|
||||
public function isAdministrator(array $record): bool
|
||||
{
|
||||
if (isset($record['id']) && (int) $record['id'] === 1) return true;
|
||||
return $this->canonicalName($record['name'] ?? null) === self::ADMINISTRATOR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user