Fixed changing access rank
This commit is contained in:
parent
5607cfc353
commit
6905ad047d
1 changed files with 2 additions and 0 deletions
|
@ -382,6 +382,8 @@ class UserController
|
||||||
throw new SimpleException('Must supply valid current password');
|
throw new SimpleException('Must supply valid current password');
|
||||||
}
|
}
|
||||||
UserModel::save($user);
|
UserModel::save($user);
|
||||||
|
if ($this->context->user->id == $user->id)
|
||||||
|
AuthController::doReLog();
|
||||||
|
|
||||||
if ($confirmMail)
|
if ($confirmMail)
|
||||||
self::sendEmailChangeConfirmation($user);
|
self::sendEmailChangeConfirmation($user);
|
||||||
|
|
Loading…
Reference in a new issue