mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Fix a bug where setting the active user did not reset group_ids (unit tests ftw!)
This commit is contained in:
@@ -119,7 +119,9 @@ class user_Core {
|
||||
* @return User_Model
|
||||
*/
|
||||
public static function set_active($user) {
|
||||
Session::instance()->set("user", $user);
|
||||
$session = Session::instance();
|
||||
$session->set("user", $user);
|
||||
$session->delete("group_ids");
|
||||
self::load_user();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user