Skip to content

Commit

Permalink
correct signature for process_new_user
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Oct 2, 2023
1 parent a52a345 commit 9fbc6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/permissions/arches_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_group_perms(self, user_or_group, obj):
def get_user_perms(self, user, obj):
return get_user_perms(user, obj)

def process_new_user(self, user):
def process_new_user(self, instance, created):
ct = ContentType.objects.get(app_label="models", model="resourceinstance")
resourceInstanceIds = list(GroupObjectPermission.objects.filter(content_type=ct).values_list("object_pk", flat=True).distinct())
for resourceInstanceId in resourceInstanceIds:
Expand Down

0 comments on commit 9fbc6ae

Please sign in to comment.