mirror of https://github.com/jumpserver/jumpserver
commit
4d92e1c0d7
|
@ -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',
|
||||
|
|
|
@ -29,7 +29,7 @@ class AppletSerializer(serializers.ModelSerializer):
|
|||
|
||||
class Meta:
|
||||
model = Applet
|
||||
fields_mini = ['id', 'name', 'display_name']
|
||||
fields_mini = ['id', 'name', 'display_name', 'is_active']
|
||||
read_only_fields = [
|
||||
'icon', 'date_created', 'date_updated',
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue