static function FindPageRights(Page $page)
    {
        $currPage = $page;
        $result = null;
        do 
        {
            $result = $currPage->GetUserGroupRights();
            $currPage = $currPage->GetParent();
        } 
        while (!$result && $currPage);
        if (!$result && $page->GetSite())
        {
            $siteRights = $page->GetSite()->GetUserGroupRights();
            if ($siteRights)
            {
                return $siteRights->GetPageRights();
            }
        }
        return $result;
    }
static function FindPageRights(Page $page)
    {
        $currPage = $page;
        $result = null;
        do 
        {
            $result = $currPage->GetUserGroupRights();
            $currPage = $currPage->GetParent();
        } 
        while (!$result && $currPage);
        if (!$result && $page->GetSite())
        {
            $siteRights = $page->GetSite()->GetUserGroupRights();
            if ($siteRights)
            {
                return $siteRights->GetPageRights();
            }
        }
        return $result;
    }
static function FindPageRights ( Page $ page ) { $ currPage = $ page ; $ result = null ; do { $ result = $ currPage -> GetUserGroupRights ( ) ; $ currPage = $ currPage -> GetParent ( ) ; } while ( ! $ result && $ currPage ) ; if ( ! $ result && $ page -> GetSite ( ) ) { $ siteRights = $ page -> GetSite ( ) -> GetUserGroupRights ( ) ; if ( $ siteRights ) { return $ siteRights -> GetPageRights ( ) ; } } return $ result ; }
Gets the rights of the page
@param Page $page
@return BackendPageRights
Gets the rights of the page