Commit 8e93bfec authored by BaiJiangJie's avatar BaiJiangJie Committed by 老广

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

parent e15c9e65
......@@ -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):
......
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 to comment