wip
This commit is contained in:
1 parent
39e1f92503
commit
b780a31a00
1 file changed
+8
@@ -31,6 +31,10 @@ public function view(User $user, User $model): bool
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($user->id === $model->id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -59,6 +63,10 @@ public function update(User $user, User $model): bool
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($user->id === $model->id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user