mirror of https://github.com/jumpserver/jumpserver
fix: 修改api doc bug
parent
d5e7f06653
commit
bb163b088f
|
@ -59,7 +59,7 @@ class CommandExecutionViewSet(RootOrgViewMixin, viewsets.ModelViewSet):
|
||||||
raise ValidationError({"hosts": msg})
|
raise ValidationError({"hosts": msg})
|
||||||
|
|
||||||
def check_permissions(self, request):
|
def check_permissions(self, request):
|
||||||
if not settings.SECURITY_COMMAND_EXECUTION and request.user.is_common_user:
|
if not settings.SECURITY_COMMAND_EXECUTION:
|
||||||
return self.permission_denied(request, "Command execution disabled")
|
return self.permission_denied(request, "Command execution disabled")
|
||||||
return super().check_permissions(request)
|
return super().check_permissions(request)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue