Browse Source

fix: 修复用户API权限

pull/7947/head
Jiangjie.Bai 3 years ago committed by Jiangjie.Bai
parent
commit
9ae74120ed
  1. 2
      apps/users/api/user.py

2
apps/users/api/user.py

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

Loading…
Cancel
Save