fix parent, teacher and admin pages

This commit is contained in:
root
2026-04-25 00:00:23 -04:00
parent 4cd98f1d30
commit eafe4eb134
30 changed files with 1566 additions and 105 deletions
+2 -2
View File
@@ -22,12 +22,12 @@ class IpAttemptPolicy
return $this->isAdmin($user);
}
public function update(User $user, IpAttempt $ipAttempt): bool
public function update(User $user, ?IpAttempt $ipAttempt = null): bool
{
return $this->isAdmin($user);
}
public function delete(User $user, IpAttempt $ipAttempt): bool
public function delete(User $user, ?IpAttempt $ipAttempt = null): bool
{
return $this->isAdmin($user);
}