use of com.ctrip.framework.apollo.portal.component.PermissionValidator in project apollo by ctripcorp.
the class SkipAuthorizationConfiguration method permissionValidator.
@Primary
@Bean("permissionValidator")
public PermissionValidator permissionValidator() {
final PermissionValidator mock = mock(PermissionValidator.class);
when(mock.isSuperAdmin()).thenReturn(true);
return mock;
}
Aggregations