Commit 8c46a5a5 authored by michael.simon's avatar michael.simon
Browse files

wrong boolean expression for override access rules

parent 2d0671c6
......@@ -198,7 +198,7 @@ public class UserLoginServiceImpl implements UserLoginService, Serializable {
List<OverrideAccess> overrideAccessList = extractOverideAccess(objectList);
List<UnauthorizedUser> unauthorizedUserList = extractUnauthorizedUser(objectList);
if (unauthorizedUserList.size() > 0 || overrideAccessList.size() == 0) {
if (overrideAccessList.size() == 0 && unauthorizedUserList.size() > 0) {
throw new UnauthorizedException(unauthorizedUserList);
}
......@@ -460,7 +460,7 @@ public class UserLoginServiceImpl implements UserLoginService, Serializable {
List<OverrideAccess> overrideAccessList = extractOverideAccess(objectList);
List<UnauthorizedUser> unauthorizedUserList = extractUnauthorizedUser(objectList);
if (unauthorizedUserList.size() > 0 || overrideAccessList.size() == 0) {
if (overrideAccessList.size() == 0 && unauthorizedUserList.size() > 0) {
throw new UnauthorizedException(unauthorizedUserList);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment