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;
    }