Skip to content

Commit

Permalink
Fix unpriviledged users being able to access bulk process
Browse files Browse the repository at this point in the history
Any user was able to access and view the bulk process page for organization
management. This fix checks access and returns unauthorized exception
if theuser shouldn't be there.
  • Loading branch information
franz osorio authored and smotornyuk committed Aug 27, 2021
1 parent c9e0911 commit f7b94d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/views/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,9 @@ def get(self, id, group_type, is_organization):
try:
group_dict = _action(u'group_show')(context, data_dict)
group = context['group']
check_access(u'group_update', context)
except NotAuthorized:
base.abort(403, _(u'Unauthorized to access'))
except NotFound:
base.abort(404, _(u'Group not found'))

Expand Down

0 comments on commit f7b94d0

Please sign in to comment.