Browse Source

[Bugfix] 修复DEFAULT组织下,批量删除(某组织下)一部分用户失败的bug (#2261)

pull/2266/head
BaiJiangJie 6 years ago committed by 老广
parent
commit
8e93bfecb0
  1. 2
      apps/users/api/user.py

2
apps/users/api/user.py

@ -47,7 +47,7 @@ class UserViewSet(IDInFilterMixin, BulkModelViewSet):
return super().get_permissions()
def allow_bulk_destroy(self, qs, filtered):
return qs.count() == filtered.count()
return qs.count() != filtered.count()
class UserChangePasswordApi(generics.RetrieveUpdateAPIView):

Loading…
Cancel
Save