Skip to content

Commit

Permalink
guest: Apply guest mode change effect immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Sep 3, 2017
1 parent 4cde5ce commit f88d416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/SiteApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public static Result toggleGuestMode(String loginId, String state, String query)
}
targetUser.isGuest = !targetUser.isGuest;
targetUser.update();
CacheStore.yonaUsers.put(targetUser.id, targetUser);
return ok(userList.render("title.siteSetting", User.findUsers(0, query, userState), userState, query));
}
flash(Constants.WARNING, "error.auth.unauthorized.waringMessage");
Expand Down

0 comments on commit f88d416

Please sign in to comment.