Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/0.1.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Oct 17, 2018
2 parents 5dbf001 + 5d0e57f commit a30263d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.10
0.1.11
3 changes: 2 additions & 1 deletion edc_permissions/permissions_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def validate_pii(self):
codenames = [x.codename for x in group.permissions.filter(
group__name=group_name)]
deleted = group.permissions.filter(
group__name=group_name, codename__in=[x for x in codenames if x in PII]).delete()
group__name=group_name, codename__in=[
x for x in codenames if x in PII]).delete()
if deleted[0]:
raise PermissionsInspectorWarning(
f'Group unexpectedly permits PII codenames. Got {deleted}. '
Expand Down

0 comments on commit a30263d

Please sign in to comment.