97425: Update names of sessions enum

This commit is contained in:
Yana De Pauw
2022-12-23 12:00:44 +01:00
parent 45e4748482
commit 1cabe8e87c
3 changed files with 15 additions and 15 deletions

View File

@@ -94,7 +94,7 @@ public class SystemWideAlertServiceImpl implements SystemWideAlertService {
if (active == null || active.isEmpty()) {
return true;
}
return active.get(0).getAllowSessions() == AllowSessionsEnum.ALL.getValue();
return active.get(0).getAllowSessions() == AllowSessionsEnum.ALLOW_ALL_SESSIONS.getValue();
}
public boolean canUserMaintainSession(Context context, EPerson ePerson) throws SQLException {
@@ -105,6 +105,6 @@ public class SystemWideAlertServiceImpl implements SystemWideAlertService {
if (active == null || active.isEmpty()) {
return true;
}
return active.get(0).getAllowSessions() != AllowSessionsEnum.ADMIN.getValue();
return active.get(0).getAllowSessions() != AllowSessionsEnum.ALLOW_ADMIN_SESSIONS_ONLY.getValue();
}
}