Skip to content

Commit

Permalink
fix: correct group id for user
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Oct 3, 2024
1 parent 1997bf9 commit d92b270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def post(self, request):
groupid = subj[3:]
groups.add(groupid)
data[str(user.pk)].setdefault(groupid, {"primary": False})
data[str(user.pk)][groupid]["permissions"] = perm_map[f"g:{groupid}"]
data[str(user.pk)][groupid]["permissions"] = perm_map[f"dg:{groupid}"]

groups = {str(g.pk): g.name for g in Group.objects.filter(pk__in=groups)}
for userid, user in data.items():
Expand Down

0 comments on commit d92b270

Please sign in to comment.