public function doesAuthorHaveAccess($item_limit = null)
    {
        $can_access = false;

        if (!isset($item_limit) || $item_limit === 'author') {
            $can_access = true;
        } elseif ($item_limit === 'developer' && Symphony::Author()->isDeveloper()) {
            $can_access = true;
        } elseif ($item_limit === 'manager' && (Symphony::Author()->isManager() || Symphony::Author()->isDeveloper())) {
            $can_access = true;
        } elseif ($item_limit === 'primary' && Symphony::Author()->isPrimaryAccount()) {
            $can_access = true;
        }

        return $can_access;
    }
public function doesAuthorHaveAccess($item_limit = null)
    {
        $can_access = false;

        if (!isset($item_limit) || $item_limit === 'author') {
            $can_access = true;
        } elseif ($item_limit === 'developer' && Symphony::Author()->isDeveloper()) {
            $can_access = true;
        } elseif ($item_limit === 'manager' && (Symphony::Author()->isManager() || Symphony::Author()->isDeveloper())) {
            $can_access = true;
        } elseif ($item_limit === 'primary' && Symphony::Author()->isPrimaryAccount()) {
            $can_access = true;
        }

        return $can_access;
    }
public function doesAuthorHaveAccess ( $ item_limit = null ) { $ can_access = false ; if ( ! isset ( $ item_limit ) || $ item_limit === 'author' ) { $ can_access = true ; } elseif ( $ item_limit === 'developer' && Symphony :: Author ( ) -> isDeveloper ( ) ) { $ can_access = true ; } elseif ( $ item_limit === 'manager' && ( Symphony :: Author ( ) -> isManager ( ) || Symphony :: Author ( ) -> isDeveloper ( ) ) ) { $ can_access = true ; } elseif ( $ item_limit === 'primary' && Symphony :: Author ( ) -> isPrimaryAccount ( ) ) { $ can_access = true ; } return $ can_access ; }
Given the limit of the current navigation item or page, this function
returns if the current Author can access that item or not.

@since Symphony 2.5.1
@param string $item_limit
@return boolean
Given the limit of the current navigation item or page this function returns if the current Author can access that item or not .