From 6905ad047d54e1b340d4113d74e870ea44f266e8 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 18 Dec 2013 16:11:07 +0100 Subject: [PATCH] Fixed changing access rank --- src/Controllers/UserController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controllers/UserController.php b/src/Controllers/UserController.php index 9a81971a..0e6f8b28 100644 --- a/src/Controllers/UserController.php +++ b/src/Controllers/UserController.php @@ -382,6 +382,8 @@ class UserController throw new SimpleException('Must supply valid current password'); } UserModel::save($user); + if ($this->context->user->id == $user->id) + AuthController::doReLog(); if ($confirmMail) self::sendEmailChangeConfirmation($user);