Allow creating subuser with no permissions
This commit is contained in:
parent
96699b192e
commit
304d947536
5 changed files with 7 additions and 5 deletions
|
@ -56,6 +56,8 @@ class PermissionCreationService
|
|||
}
|
||||
}
|
||||
|
||||
$this->repository->withoutFreshModel()->insert($insertPermissions);
|
||||
if (! empty($insertPermissions)) {
|
||||
$this->repository->withoutFreshModel()->insert($insertPermissions);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue