diff --git a/ckan/controllers/group.py b/ckan/controllers/group.py index 5cd3cd64a7d..9656ac5214f 100644 --- a/ckan/controllers/group.py +++ b/ckan/controllers/group.py @@ -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),