mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 09:21:02 +00:00
fix: rbac 合并 (#7658)
* perf: 修复一些错误权限位 * Pr@fix rbac@fix rbac permissions (#7648) * fix: 确保每次 migrate 执行更新 role permissions * perf: 修改 choices * feat: 兼容apple m1 * perf: 修改 migrations role permissions * perf: pymysql 导入 * perf: admin 判断 * fix: 修复消息订阅权限 Co-authored-by: ibuler <ibuler@qq.com> Co-authored-by: Aaron3S <chenyang@fit2cloud.com> Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
@@ -19,14 +19,15 @@ __all__ = (
|
||||
|
||||
|
||||
class BackendListView(APIView):
|
||||
permission_classes = [IsValidUser]
|
||||
|
||||
def get(self, request):
|
||||
data = [
|
||||
{
|
||||
'name': backend,
|
||||
'name_display': backend.label
|
||||
}
|
||||
for backend in BACKEND.choices
|
||||
if backend.is_enable
|
||||
for backend in BACKEND if backend.is_enable
|
||||
]
|
||||
return Response(data=data)
|
||||
|
||||
@@ -91,7 +92,6 @@ class UserMsgSubscriptionViewSet(ListModelMixin,
|
||||
return queryset
|
||||
|
||||
|
||||
|
||||
def get_all_test_messages(request):
|
||||
import textwrap
|
||||
from ..notifications import Message
|
||||
@@ -128,5 +128,3 @@ def get_all_test_messages(request):
|
||||
<hr />
|
||||
""").format(msg_cls.__name__, msg_text)
|
||||
return HttpResponse(html_data + text_data)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user