function GrantAddContentToContainer(Container $container)
    {
        //dummy content for evaluation
        $content = new Content();
        $content->SetUserGroup($container->GetUserGroup());
        $containerRights = $container->GetUserGroupRights();
        if ($containerRights)
        {
            $content->SetUserGroupRights($containerRights->GetContentRights());
        }
        return $this->Grant(BackendAction::Create(), $content);
    }
function GrantAddContentToContainer(Container $container)
    {
        //dummy content for evaluation
        $content = new Content();
        $content->SetUserGroup($container->GetUserGroup());
        $containerRights = $container->GetUserGroupRights();
        if ($containerRights)
        {
            $content->SetUserGroupRights($containerRights->GetContentRights());
        }
        return $this->Grant(BackendAction::Create(), $content);
    }
function GrantAddContentToContainer ( Container $ container ) { //dummy content for evaluation $ content = new Content ( ) ; $ content -> SetUserGroup ( $ container -> GetUserGroup ( ) ) ; $ containerRights = $ container -> GetUserGroupRights ( ) ; if ( $ containerRights ) { $ content -> SetUserGroupRights ( $ containerRights -> GetContentRights ( ) ) ; } return $ this -> Grant ( BackendAction :: Create ( ) , $ content ) ; }
Grant evaluation for adding content on top of a container
@param Container $container The container
@return GrantResult Returns the grant result telling if creation is allowed
Grant evaluation for adding content on top of a container