perf: 添加 check api 避免未认证

This commit is contained in:
ibuler
2023-09-13 17:05:01 +08:00
parent 1249935bab
commit d0f79c2df2
12 changed files with 189 additions and 40 deletions

View File

@@ -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>'