public function isHidden()
    {
        $hidden = $this->isEmbargoed() || $this->isExpired();
        $readingMode = Versioned::get_reading_mode();

        if ($readingMode == "Stage.Stage") {
            if ($this->EmbargoedUntilPublished == true) {
                $hidden = false;
            }
        }

        return $hidden;
    }
public function isHidden()
    {
        $hidden = $this->isEmbargoed() || $this->isExpired();
        $readingMode = Versioned::get_reading_mode();

        if ($readingMode == "Stage.Stage") {
            if ($this->EmbargoedUntilPublished == true) {
                $hidden = false;
            }
        }

        return $hidden;
    }
public function isHidden ( ) { $ hidden = $ this -> isEmbargoed ( ) || $ this -> isExpired ( ) ; $ readingMode = Versioned :: get_reading_mode ( ) ; if ( $ readingMode == "Stage.Stage" ) { if ( $ this -> EmbargoedUntilPublished == true ) { $ hidden = false ; } } return $ hidden ; }
Returns if this is Document is embargoed or expired.

Also, returns if the document should be displayed on the front-end,
respecting the current reading mode of the site and the embargo status.

I.e. if a document is embargoed until published, then it should still
show up in draft mode.

@return bool
Returns if this is Document is embargoed or expired .