Skip to content
Snippets Groups Projects
Commit 0bc71c63 authored by srosse's avatar srosse
Browse files

OO-4887: disallow login to inactive users

parent c9ba0687
No related branches found
No related tags found
No related merge requests found
...@@ -1054,7 +1054,7 @@ public class BaseSecurityManager implements BaseSecurity, UserDataDeletable { ...@@ -1054,7 +1054,7 @@ public class BaseSecurityManager implements BaseSecurity, UserDataDeletable {
public boolean isIdentityLoginAllowed(Identity identity) { public boolean isIdentityLoginAllowed(Identity identity) {
if(identity == null || identity.getStatus() == null) return false; if(identity == null || identity.getStatus() == null) return false;
int status = identity.getStatus().intValue(); int status = identity.getStatus().intValue();
return status < Identity.STATUS_VISIBLE_LIMIT.intValue() || status == Identity.STATUS_INACTIVE.intValue(); return status < Identity.STATUS_VISIBLE_LIMIT.intValue();
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment