uses gate
linter / quality (pull_request) Successful in 1m9s
tests / ci (8.4) (pull_request) Successful in 1m8s

This commit is contained in:
Nico Schroeder
2026-03-25 20:21:30 +01:00
parent aeee3d2640
commit 7c94592a8f
@@ -12,7 +12,7 @@ class UpdateUserAdminStatusRequest extends FormRequest
*/
public function authorize(): bool
{
return $this->user()?->is_admin === true;
return $this->user()?->can('access-admin') ?? false;
}
/**