src/Core/Logic/Access/Backend/UserGuard.php
function GrantAddContentToPage(Page $page)
    {
        //dummy content for evaluation
        $content = new Content();
        $content->SetUserGroup(GroupFinder::FindPageGroup($page));
        $pageRights = RightsFinder::FindPageRights($page);
        if ($pageRights)
        {
            $content->SetUserGroupRights($pageRights->GetContentRights());
        }
        return $this->Grant(BackendAction::Create(), $content);
    }
function GrantAddContentToPage(Page $page)
    {
        //dummy content for evaluation
        $content = new Content();
        $content->SetUserGroup(GroupFinder::FindPageGroup($page));
        $pageRights = RightsFinder::FindPageRights($page);
        if ($pageRights)
        {
            $content->SetUserGroupRights($pageRights->GetContentRights());
        }
        return $this->Grant(BackendAction::Create(), $content);
    }
function GrantAddContentToPage ( Page $ page ) { //dummy content for evaluation $ content = new Content ( ) ; $ content -> SetUserGroup ( GroupFinder :: FindPageGroup ( $ page ) ) ; $ pageRights = RightsFinder :: FindPageRights ( $ page ) ; if ( $ pageRights ) { $ content -> SetUserGroupRights ( $ pageRights -> GetContentRights ( ) ) ; } return $ this -> Grant ( BackendAction :: Create ( ) , $ content ) ; }
Grant evaluation for adding content on top of a page area
@param Page $page The page
@return GrantResult GrantResult Returns the grant result telling if creation is allowed
Grant evaluation for adding content on top of a page area