added team create permission

This commit is contained in:
2026-04-12 21:23:23 +02:00
parent 6f19d12964
commit 709efc9fb0
7 changed files with 62 additions and 12 deletions
@@ -48,7 +48,7 @@ class HandleInertiaRequests extends Middleware
'name' => config('app.name'),
'auth' => [
'permissions' => [
'canManageTeams' => $user !== null && $this->permissionService->canManageAnyTeam($user),
'canManageTeams' => $user !== null && ($this->permissionService->canManageAnyTeam($user) || $this->permissionService->allows($user, Permission::TeamCreate)),
'globalAdmin' => $user !== null && $this->permissionService->allows($user, Permission::GlobalAdmin),
'projectCreate' => $user !== null && $this->permissionService->allows($user, Permission::ProjectCreate),
],