mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
fix change user class + medal display
This commit is contained in:
@@ -471,7 +471,8 @@ class UserRepository extends BaseRepository
|
||||
user_can('user-change-class', true);
|
||||
$operator = $this->getUser($operator);
|
||||
$targetUser = $this->getUser($targetUser);
|
||||
if ($operator && $operator->class <= $targetUser->class) {
|
||||
if ($operator) {
|
||||
if ($operator->class <= $targetUser->class || $operator->class <= $newClass)
|
||||
throw new InsufficientPermissionException();
|
||||
}
|
||||
if ($targetUser->class == $newClass) {
|
||||
|
||||
Reference in New Issue
Block a user