mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Adds code to allow deletion of users via cmd line.
Fixes #579 Command: php artisan bookstack:delete-users Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
@ -81,7 +81,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||
*/
|
||||
public function hasSystemRole($role)
|
||||
{
|
||||
return $this->roles->pluck('system_name')->contains('admin');
|
||||
return $this->roles->pluck('system_name')->contains($role);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user