public function canCreateCategories($member = null)
    {
        $member = $this->getMember($member);

        $parent = $this->Parent();

        if (!$parent || !$parent->exists() || !($parent instanceof Blog)) {
            return false;
        }

        if ($parent->isEditor($member)) {
            return true;
        }

        return Permission::checkMember($member, 'ADMIN');
    }
public function canCreateCategories($member = null)
    {
        $member = $this->getMember($member);

        $parent = $this->Parent();

        if (!$parent || !$parent->exists() || !($parent instanceof Blog)) {
            return false;
        }

        if ($parent->isEditor($member)) {
            return true;
        }

        return Permission::checkMember($member, 'ADMIN');
    }
public function canCreateCategories ( $ member = null ) { $ member = $ this -> getMember ( $ member ) ; $ parent = $ this -> Parent ( ) ; if ( ! $ parent || ! $ parent -> exists ( ) || ! ( $ parent instanceof Blog ) ) { return false ; } if ( $ parent -> isEditor ( $ member ) ) { return true ; } return Permission :: checkMember ( $ member , 'ADMIN' ) ; }
Determine whether user can create new categories.

@param null|int|Member $member

@return bool
Determine whether user can create new categories .