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
+1 -1
View File
@@ -13,7 +13,7 @@ class StoreTeamRequest extends FormRequest
*/
public function authorize(): bool
{
return $this->user()?->can('access-admin') ?? false;
return $this->user()?->can('create-team') ?? false;
}
/**