DONE: layout letter with letterhead and footer, notification for newly...
This commit is contained in:
@@ -30,7 +30,7 @@ class UserPolicy
|
||||
*/
|
||||
public function create($user): bool
|
||||
{
|
||||
return $user->hasPermissionTo('tambah pengguna');
|
||||
return $user->hasPermissionTo('daftar pengguna baru');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ class UserPolicy
|
||||
*/
|
||||
public function deleteAny($user): bool
|
||||
{
|
||||
return $user->hasPermissionTo('hapus pengguna');
|
||||
return $user->hasPermissionTo('padam akaun pengguna');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,6 +54,14 @@ class UserPolicy
|
||||
*/
|
||||
public function delete($user, ?User $userModel = null): bool
|
||||
{
|
||||
return $user->hasPermissionTo('hapus pengguna');
|
||||
return $user->hasPermissionTo('padam akaun pengguna');
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore a soft-deleted model.
|
||||
*/
|
||||
public function restore($user, ?User $userModel = null): bool
|
||||
{
|
||||
return $user->hasPermissionTo('padam akaun pengguna');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user