Better error handling and remove some warnings.

This commit is contained in:
James Cole
2024-08-05 19:45:04 +02:00
parent d2e9b64bf5
commit e26f78bf50
13 changed files with 316 additions and 46 deletions

View File

@@ -37,6 +37,10 @@ class AccountPolicy
return auth()->check() && $user->id === $account->user_id;
}
public function create(): bool {
return auth()->check();
}
/**
* Everybody can do this, but selection should limit to user.
*