Skip to content

Commit 33308e4

Browse files
committed
fix: add model to context needed for purging group
1 parent 7c6ace5 commit 33308e4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ckanext/dcor_schemas/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ def dcor_purge_unused_collections_and_circles(
296296
if not dry_run:
297297
# The `group_purge` method makes sure that all the memberships
298298
# (users) are deleted before removing the group.
299-
purge_method(admin_context(), {"id": group.id})
299+
purge_method({'ignore_auth': True,
300+
'user': 'default',
301+
'model': model},
302+
{"id": group.id}
303+
)
300304

301305

302306
@click.command()

0 commit comments

Comments
 (0)