RM-7145 Wire in RM AuthenticationUtil.

This commit is contained in:
Tom Page
2020-04-01 15:34:25 +01:00
parent 94b209e0ea
commit 98a1485baa
2 changed files with 11 additions and 0 deletions

View File

@@ -156,6 +156,7 @@
<property name="maxPermissionChecks">
<value>${system.acl.maxPermissionChecks}</value>
</property>
<property name="authenticationUtil" ref="rm.authenticationUtil" />
</bean>
<!-- Link up after method call security -->

View File

@@ -130,6 +130,16 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
this.maxPermissionCheckTimeMillis = maxPermissionCheckTimeMillis;
}
/**
* Sets the authentication util
*
* @param authenticationUtil The authentication util to set
*/
public void setAuthenticationUtil(AuthenticationUtil authenticationUtil)
{
this.authenticationUtil = authenticationUtil;
}
@SuppressWarnings("rawtypes")
public Object decide(Authentication authentication, Object object, ConfigAttributeDefinition config, Object returnedObject)
{