Papi_Page_Type::allowed PHP Method

allowed() public method

Determine if the page type is allowed by capabilities and post type.
public allowed ( ) : boolean
return boolean
    public function allowed()
    {
        $args = func_get_args();
        return empty($args) ? parent::allowed() : papi_current_user_is_allowed($this->capabilities) && isset($args[0]) && in_array($args[0], $this->post_type, true);
    }