mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fixed: create&edit tag no select mode error
This commit is contained in:
@@ -471,6 +471,9 @@ class UserRepository extends BaseRepository
|
||||
user_can('user-change-class', true);
|
||||
$operator = $this->getUser($operator);
|
||||
$targetUser = $this->getUser($targetUser);
|
||||
if ($operator && $operator->class <= $targetUser->class) {
|
||||
throw new InsufficientPermissionException();
|
||||
}
|
||||
if ($targetUser->class == $newClass) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user