Merge pull request #5655 from ManniLoe/fix-saml-bulk

no exclustion of SAML Users on bulk-alter-group
This commit is contained in:
Finn Stutzenstein 2020-10-27 07:25:37 +01:00 committed by GitHub
commit 961a2da888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,7 +391,7 @@ class UserViewSet(ModelViewSet):
if action not in ("add", "remove"):
raise ValidationError({"detail": "The action must be add or remove"})
users = self.bulk_get_users(request, user_ids)
users = self.bulk_get_users(request, user_ids, auth_type=None)
groups = list(Group.objects.filter(pk__in=group_ids))
for user in users: