Added the ability to manage a group of users.
This commit is contained in:
@@ -41,7 +41,7 @@ final class CreateUserAdmin extends Command
|
||||
$data = $validator->valid();
|
||||
|
||||
try {
|
||||
$role = $roleRepository->getRoleBySlug(SystemRole::Admin->value);
|
||||
$role = $roleRepository->getRoleByCode(SystemRole::Admin->value);
|
||||
if (is_null($role)) {
|
||||
$this->errorMessageAndStop('Administrator role not found.');
|
||||
}
|
||||
|
Reference in New Issue
Block a user