Commit d713a4fd by Bach Dániel

fix issue #185 (AclUpdateView should take org id into consideration)

fixes #185
parent b2e6c849
...@@ -858,7 +858,7 @@ class GroupDetailView(CheckedDetailView): ...@@ -858,7 +858,7 @@ class GroupDetailView(CheckedDetailView):
if not name: if not name:
return return
try: try:
entity = User.objects.get(username=name) entity = search_user(name)
self.object.user_set.add(entity) self.object.user_set.add(entity)
except User.DoesNotExist: except User.DoesNotExist:
if saml_available: if saml_available:
...@@ -962,7 +962,7 @@ class AclUpdateView(LoginRequiredMixin, View, SingleObjectMixin): ...@@ -962,7 +962,7 @@ class AclUpdateView(LoginRequiredMixin, View, SingleObjectMixin):
if not name: if not name:
return return
try: try:
entity = User.objects.get(username=name) entity = search_user(name)
except User.DoesNotExist: except User.DoesNotExist:
entity = None entity = None
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment