public function computePermissions(array $actions, \common_user_User $user, array $node)
    {
        $permissions = [];
        foreach($actions as $action){
            $access = $this->hasAccess($action, $user, $node);
            if($access != self::ACCESS_UNDEFINED){
                $permissions[$action->getId()] = ($access == self::ACCESS_GRANTED);
            }
        }
        return $permissions;
    }
public function computePermissions(array $actions, \common_user_User $user, array $node)
    {
        $permissions = [];
        foreach($actions as $action){
            $access = $this->hasAccess($action, $user, $node);
            if($access != self::ACCESS_UNDEFINED){
                $permissions[$action->getId()] = ($access == self::ACCESS_GRANTED);
            }
        }
        return $permissions;
    }
public function computePermissions ( array $ actions , \ common_user_User $ user , array $ node ) { $ permissions = [ ] ; foreach ( $ actions as $ action ) { $ access = $ this -> hasAccess ( $ action , $ user , $ node ) ; if ( $ access != self :: ACCESS_UNDEFINED ) { $ permissions [ $ action -> getId ( ) ] = ( $ access == self :: ACCESS_GRANTED ) ; } } return $ permissions ; }
Compute the permissions of a node against a list of actions
@param MenuAction[]      $actions the menu actions
@param common_user_User  $user   the user to check
@param array             $node   the node/resource to verify
@return array                    the computed permissions as actionId => boolean
Compute the permissions of a node against a list of actions