src/Core/Logic/Access/Backend/UserGuard.php
function GrantAddContentToLayout(Layout $layout)
    {
        //dummy content for evaluation
        $content = new Content();
        $content->SetUserGroup($layout->GetUserGroup());
        $layoutRights = $layout->GetUserGroupRights();
        if ($layoutRights)
        {
            $content->SetUserGroupRights($layoutRights->GetContentRights());
        }
        return $this->Grant(BackendAction::Create(), $content);
    }
function GrantAddContentToLayout(Layout $layout)
    {
        //dummy content for evaluation
        $content = new Content();
        $content->SetUserGroup($layout->GetUserGroup());
        $layoutRights = $layout->GetUserGroupRights();
        if ($layoutRights)
        {
            $content->SetUserGroupRights($layoutRights->GetContentRights());
        }
        return $this->Grant(BackendAction::Create(), $content);
    }
function GrantAddContentToLayout ( Layout $ layout ) { //dummy content for evaluation $ content = new Content ( ) ; $ content -> SetUserGroup ( $ layout -> GetUserGroup ( ) ) ; $ layoutRights = $ layout -> GetUserGroupRights ( ) ; if ( $ layoutRights ) { $ content -> SetUserGroupRights ( $ layoutRights -> GetContentRights ( ) ) ; } return $ this -> Grant ( BackendAction :: Create ( ) , $ content ) ; }
Grant evaluation for adding content on top of a layout area
@param Layout $layout The layout
@return GrantResult Returns the grant result telling if creation is allowed
Grant evaluation for adding content on top of a layout area