Added the ability to manage a group of users.

This commit is contained in:
2023-07-16 19:21:09 +06:00
parent ba7e52f8ac
commit 4083e2ec5e
45 changed files with 1173 additions and 10 deletions

View File

@@ -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.');
}