code formatting
This commit is contained in:
parent
be86a63ef9
commit
a744393240
@ -27,7 +27,7 @@ public class LoginService implements LoginServiceLocal {
|
||||
} else {
|
||||
checkRunAsAllowed(ticketUser, runAs);
|
||||
}
|
||||
Role scope = findRunAsRole(runAs);
|
||||
final Role scope = findRunAsRole(runAs);
|
||||
return new RequestContext(runAsUser, scope);
|
||||
}
|
||||
throw new UserException(new UserError(UserError.MSG_INVALID_TICKET, ticket));
|
||||
|
@ -58,8 +58,9 @@ public abstract class AbstractModule<VO extends ValueObject> implements Module<V
|
||||
validationDelegate.checkCriteriaIsSearchable(criteria);
|
||||
}
|
||||
|
||||
protected void checkScopePolicy(final RequestContext requestContext, final String methodName,
|
||||
final VO criteria) throws TechnicalException, UserException {
|
||||
protected void checkScopePolicy(final RequestContext requestContext, final String methodName, final VO criteria)
|
||||
throws TechnicalException, UserException
|
||||
{
|
||||
final String scopeAttribute = checkScopePolicy(requestContext, methodName);
|
||||
if (scopeAttribute != null && !scopeAttribute.isEmpty()) {
|
||||
final Property<?> property = criteria.get(scopeAttribute);
|
||||
|
Loading…
Reference in New Issue
Block a user