fix: 修复用户API权限

pull/7948/head
Jiangjie.Bai 2022-03-21 11:58:36 +08:00 committed by Jiangjie.Bai
parent 79a40f7ded
commit 441c6a7f60
1 changed files with 1 additions and 1 deletions

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: