fix parent, teacher and admin pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user