Skip to content

Commit

Permalink
Merge pull request #41 from wardi/canada-v2.1
Browse files Browse the repository at this point in the history
fix access of organizations through /group url
  • Loading branch information
wardi committed Nov 21, 2013
2 parents 709bc61 + c319f57 commit 5d65f21
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 5d65f21

Please sign in to comment.