Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Authorization error when a non-sysadmin user deletes a group/org #6006

@amercader

Description

@amercader

CKAN version

>=2.7

Describe the bug
When a non-sysadmin user deletes a group or organization, they get a 403 Not Authorized error. The group/org gets actually deleted.

This is because after deleting the group/org we are calling group_show on the deleted entity:

group_dict = _action(u'group_show')(context, {u'id': id})

AFAICT we are not using this group_dict at all so it can be removed.

The tests in place didn't check the status code returned so that's why it slipped unnoticed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions