mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
fix install create administrator
This commit is contained in:
@@ -105,9 +105,11 @@ class UserRepository extends BaseRepository
|
||||
}
|
||||
if (!empty($params['class'])) {
|
||||
$class =intval($params['class']);
|
||||
$authUser = Auth::user();
|
||||
if ($authUser && $class >= $authUser->class) {
|
||||
throw new InsufficientPermissionException('No permission');
|
||||
if (!IN_NEXUS) {
|
||||
$authUser = Auth::user();
|
||||
if ($authUser && $class >= $authUser->class) {
|
||||
throw new InsufficientPermissionException('No permission');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$class = User::CLASS_USER;
|
||||
|
||||
Reference in New Issue
Block a user