Skip to content

Commit

Permalink
fix access of organizations through /group url
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Nov 21, 2013
1 parent 709bc61 commit c319f57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/controllers/group.py
Expand Up @@ -166,6 +166,9 @@ def index(self):

def read(self, id, limit=20):
group_type = self._get_group_type(id.split('@')[0])
if group_type != self.group_type:
abort(404, _('Incorrect group type'))

context = {'model': model, 'session': model.Session,
'user': c.user or c.author,
'schema': self._db_to_form_schema(group_type=group_type),
Expand Down

0 comments on commit c319f57

Please sign in to comment.