fix: 修复用户API权限

This commit is contained in:
Jiangjie.Bai
2022-03-21 11:58:36 +08:00
committed by Jiangjie.Bai
parent 9e5c132485
commit 9ae74120ed

View File

@@ -109,7 +109,7 @@ class UserViewSet(CommonApiMixin, UserQuerysetMixin, SuggestionMixin, BulkModelV
return super().perform_bulk_update(serializer)
def allow_bulk_destroy(self, qs, filtered):
return qs.count() != filtered.count()
return filtered.count() < qs.count()
def perform_bulk_destroy(self, objects):
for obj in objects: