Skip to content

Commit

Permalink
[#4031] Remove _guess_group_type methods from org controller
Browse files Browse the repository at this point in the history
It had "organization" hardcoded so it prevented custom organization
types to work properly. The parent implementation in the group
controller should work fine for orgs as well as it just uses the URL.
  • Loading branch information
amercader committed Feb 23, 2018
1 parent d988c6b commit 8da2e48
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ckan/controllers/organization.py
Expand Up @@ -20,9 +20,6 @@ class OrganizationController(group.GroupController):

group_types = ['organization']

def _guess_group_type(self, expecting_name=False):
return 'organization'

def _replace_group_org(self, string):
''' substitute organization for group if this is an org'''
return re.sub('^group', 'organization', string)
Expand Down

0 comments on commit 8da2e48

Please sign in to comment.