Closes #85: UI for login as guest

This commit is contained in:
jendib
2016-05-29 18:34:51 +02:00
parent d7865cfaf0
commit 7a7cbd570c
9 changed files with 72 additions and 24 deletions
@@ -331,7 +331,7 @@ public class UserResource extends BaseResource {
// Get the user
UserDao userDao = new UserDao();
User user = null;
if (username.equals(Constants.GUEST_USER_ID)) {
if (Constants.GUEST_USER_ID.equals(username)) {
if (ConfigUtil.getConfigBooleanValue(ConfigType.GUEST_LOGIN)) {
// Login as guest
user = userDao.getActiveByUsername(Constants.GUEST_USER_ID);