Skip to content

Commit

Permalink
Apply requested changes for PR#4844
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Feb 14, 2024
1 parent f365073 commit 139c98c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ def remove_add_submissions_for_anonymous_user(apps, schema_editor):
permission_id = Permission.objects.get(codename=PERM_ADD_SUBMISSIONS).pk

ObjectPermission.objects.filter(
deny=False,
inherited=False,
permission_id=permission_id,
user_id=settings.ANONYMOUS_USER_ID,
).exclude(asset__asset_type=ASSET_TYPE_SURVEY).delete()
Expand Down

0 comments on commit 139c98c

Please sign in to comment.