src/BoomCMS/Chunk/Provider.php
public function allowedToEdit(Page $page = null)
    {
        if ($page === null) {
            return true;
        }

        return Editor::isEnabled() && $this->gate->allows('edit', $page);
    }
public function allowedToEdit(Page $page = null)
    {
        if ($page === null) {
            return true;
        }

        return Editor::isEnabled() && $this->gate->allows('edit', $page);
    }
public function allowedToEdit ( Page $ page = null ) { if ( $ page === null ) { return true ; } return Editor :: isEnabled ( ) && $ this -> gate -> allows ( 'edit' , $ page ) ; }
Returns whether the logged in user is allowed to edit a page.

@return bool
Returns whether the logged in user is allowed to edit a page .