wip
This commit is contained in:
@@ -31,6 +31,10 @@ class UserPolicy
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($user->id === $model->id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -59,6 +63,10 @@ class UserPolicy
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($user->id === $model->id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user