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

pull/2266/head
BaiJiangJie 6 years ago committed by 老广
parent e15c9e6588
commit 8e93bfecb0

@ -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