fix: 修复批量操作权限bug

pull/7677/head
feng626 2022-02-22 14:34:44 +08:00 committed by Jiangjie.Bai
parent 702111f578
commit 09494193ab
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ class RBACPermission(permissions.DjangoModelPermissions):
('update', '%(app_label)s.change_%(model_name)s'),
('partial_update', '%(app_label)s.change_%(model_name)s'),
('destroy', '%(app_label)s.delete_%(model_name)s'),
('bulk_update', '%(app_label)s.change_%(model_name)s'),
('partial_bulk_update', '%(app_label)s.change_%(model_name)s'),
('bulk_destroy', '%(app_label)s.delete_%(model_name)s'),
('metadata', ''),
('GET', '%(app_label)s.view_%(model_name)s'),
('OPTIONS', ''),