feat: 增加 analyst 角色——仅测试数据查询/下载+修改密码
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
</head>
|
||||
<body>
|
||||
<nav class="top-menu">
|
||||
{% if current_user.is_authenticated and current_user.role != 'analyst' %}
|
||||
<a href="/" class="{% if request.path == '/' %}active{% endif %}">设备</a>
|
||||
{% endif %}
|
||||
<a href="/test-data" class="{% if request.path == '/test-data' %}active{% endif %}">测试信息</a>
|
||||
{% if current_user.is_authenticated and current_user.role in ('admin', 'manager') %}
|
||||
<a href="/device-logs" class="{% if request.path == '/device-logs' %}active{% endif %}">设备日志</a>
|
||||
|
||||
Reference in New Issue
Block a user