public boolean hasDelfoiAccess ( User user , DelfoiActionName actionName ) { if ( isSuperUser ( user ) ) { return true ; } DelfoiAction action = delfoiActionDAO . findByActionName ( actionName . toString ( ) ) ; if ( action == null ) { logger . info ( String . format ( "ActionUtils.hasDelfoiAccess - undefined action: '%s'" , actionName ) ) ; return false ; } UserRole userRole = getDelfoiRole ( user ) ; return hasDelfoiAccess ( action , userRole ) ; }
Returns whether user has required delfoi action access