add some permession

This commit is contained in:
nurmuhammet committed 2023-11-29 23:56:04 +05:00
1 parent f073020e86
commit c3ef45134c
8 files changed
+123 -23

No files matched your search

+4
View File
@@ -96,6 +96,10 @@ public function restore(User $user, User $model): bool
*/
public function forceDelete(User $user, User $model): bool
{
if ($model->email === 'nurmuhammet@mail.com') {
return false;
}
if ($user->isAdmin()) {
return true;
}