fix: modify render_to_json rbac

pull/13592/head
wangruidong 2024-07-03 15:41:02 +08:00 committed by 老广
parent d7b8174fd0
commit 35b0741068
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class RBACPermission(permissions.DjangoModelPermissions):
('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'),
('render_to_json', '%(app_label)s.add_%(model_name)s'),
('render_to_json', '*'),
('metadata', '*'),
('GET', '%(app_label)s.view_%(model_name)s'),
('OPTIONS', '*'),