mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 00:15:20 +00:00
perf: 添加 check api 避免未认证
This commit is contained in:
@@ -96,6 +96,8 @@ def get_all_test_messages(request):
|
||||
import textwrap
|
||||
from ..notifications import Message
|
||||
from django.shortcuts import HttpResponse
|
||||
if not request.user.is_superuser:
|
||||
return HttpResponse('没有权限', status=401)
|
||||
|
||||
msgs_cls = Message.get_all_sub_messages()
|
||||
html_data = '<h3>HTML 格式 </h3>'
|
||||
|
Reference in New Issue
Block a user