mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 17:01:09 +00:00
fix: 修复用户API权限
This commit is contained in:
committed by
Jiangjie.Bai
parent
9e5c132485
commit
9ae74120ed
@@ -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:
|
||||
|
Reference in New Issue
Block a user