perf: 优化远程应用界面

This commit is contained in:
jiangweidong
2023-01-20 17:52:51 +08:00
parent 4bef48eb6a
commit b6eac5a6b7
2 changed files with 2 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ class DownloadUploadMixin:
class AppletViewSet(DownloadUploadMixin, JMSBulkModelViewSet):
queryset = Applet.objects.all()
serializer_class = serializers.AppletSerializer
search_fields = ['name', 'display_name', 'author']
rbac_perms = {
'upload': 'terminal.add_applet',
'download': 'terminal.view_applet',