return true;
}
if (permission.getRecipient() instanceof Role)
{
Role role = (Role) permission.getRecipient();
if (role.isConditional())
{
RuleBasedPermissionResolver resolver = RuleBasedPermissionResolver.instance();
if (resolver.checkConditionalRole(role.getName(), target, action)) return true;
}
else if (identity.hasRole(role.getName()))
{
return true;
}
}
}