Airship\Cabin\Bridge\Landing\AuthorFiles::permCheck PHP Method

permCheck() protected method

Permissions check
protected permCheck ( ) : boolean
return boolean
    protected function permCheck() : bool
    {
        if ($this->isSuperUser()) {
            return true;
        }
        $authorsForUser = $this->author->getAuthorIdsForUser($this->getActiveUserId());
        // Check
        if (!\in_array($this->authorId, $authorsForUser)) {
            return false;
        }
        return true;
    }