private function FindParentRights()
    {
        $parentRights = null;
        $parentContent = $this->Content()->Exists() ? ContentTreeUtil::ParentOf($this->Content()) : null;
        if ($parentContent) {
            $parentRights = RightsFinder::FindContentRights($parentContent);
        }
        if (!$parentRights) {
            switch ($this->Location()) {
                case Enums\ContentLocation::Page():
                    $pageRights = RightsFinder::FindPageRights($this->Page());
                    $parentRights = $pageRights ? $pageRights->GetContentRights() : null;
                    break;

                case Enums\ContentLocation::Layout():
                    $layoutRights = $this->Area()->GetLayout()->GetUserGroupRights();
                    $parentRights = $layoutRights ? $layoutRights->GetContentRights() : null;
                    break;

                case Enums\ContentLocation::Container():
                    $containerRights = $this->Container()->GetUserGroupRights();
                    $parentRights = $containerRights ? $containerRights->GetContentRights() : null;
                    break;
            }
        }
        return $parentRights;
    }
private function FindParentRights()
    {
        $parentRights = null;
        $parentContent = $this->Content()->Exists() ? ContentTreeUtil::ParentOf($this->Content()) : null;
        if ($parentContent) {
            $parentRights = RightsFinder::FindContentRights($parentContent);
        }
        if (!$parentRights) {
            switch ($this->Location()) {
                case Enums\ContentLocation::Page():
                    $pageRights = RightsFinder::FindPageRights($this->Page());
                    $parentRights = $pageRights ? $pageRights->GetContentRights() : null;
                    break;

                case Enums\ContentLocation::Layout():
                    $layoutRights = $this->Area()->GetLayout()->GetUserGroupRights();
                    $parentRights = $layoutRights ? $layoutRights->GetContentRights() : null;
                    break;

                case Enums\ContentLocation::Container():
                    $containerRights = $this->Container()->GetUserGroupRights();
                    $parentRights = $containerRights ? $containerRights->GetContentRights() : null;
                    break;
            }
        }
        return $parentRights;
    }
private function FindParentRights ( ) { $ parentRights = null ; $ parentContent = $ this -> Content ( ) -> Exists ( ) ? ContentTreeUtil :: ParentOf ( $ this -> Content ( ) ) : null ; if ( $ parentContent ) { $ parentRights = RightsFinder :: FindContentRights ( $ parentContent ) ; } if ( ! $ parentRights ) { switch ( $ this -> Location ( ) ) { case Enums \ ContentLocation :: Page ( ) : $ pageRights = RightsFinder :: FindPageRights ( $ this -> Page ( ) ) ; $ parentRights = $ pageRights ? $ pageRights -> GetContentRights ( ) : null ; break ; case Enums \ ContentLocation :: Layout ( ) : $ layoutRights = $ this -> Area ( ) -> GetLayout ( ) -> GetUserGroupRights ( ) ; $ parentRights = $ layoutRights ? $ layoutRights -> GetContentRights ( ) : null ; break ; case Enums \ ContentLocation :: Container ( ) : $ containerRights = $ this -> Container ( ) -> GetUserGroupRights ( ) ; $ parentRights = $ containerRights ? $ containerRights -> GetContentRights ( ) : null ; break ; } } return $ parentRights ; }
Finds the parent rights
@return BackendContentRights
Finds the parent rights