fix the tests failure
API CI/CD / Validate (composer + pint) (push) Successful in 2m6s
API CI/CD / Test (PHPUnit) (push) Failing after 2m16s
API CI/CD / Build frontend assets (push) Successful in 2m15s
API CI/CD / Security audit (push) Successful in 32s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-06-24 00:34:58 -04:00
parent 048d48de6a
commit 2e0bc37d91
7 changed files with 76 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class PreferencesPolicy
public function delete(User $user, Preferences $preferences): bool
{
return $this->isAdmin($user);
return $preferences->user_id === $user->id || $this->isAdmin($user);
}
public function create(User $user): bool