fix: 修改content type 权限 (#12890)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2024-03-28 15:22:26 +08:00
committed by GitHub
parent 47ceaf967c
commit bf1a29fac2

View File

@@ -19,8 +19,7 @@ class ContentTypeViewSet(JMSModelViewSet):
serializer_class = ContentTypeSerializer
http_method_names = ['get', 'head', 'options']
rbac_perms = {
'default': 'labels.view_contenttype',
'resources': 'labels.view_contenttype',
'resources': 'rbac.view_contenttype',
}
page_default_limit = None
can_labeled_content_type = []