Commit 1b7294f7 authored by BaiJiangJie's avatar BaiJiangJie

[Update] 在线会话列表允许终端 RDP session

parent de43980e
...@@ -140,7 +140,7 @@ function initTable() { ...@@ -140,7 +140,7 @@ function initTable() {
replayBtn = replayBtn.replace("disabled", "") replayBtn = replayBtn.replace("disabled", "")
} }
var termBtn = '<a class="btn btn-xs btn-danger btn-term" disabled value="sessionID" terminal="terminalID" >{% trans "Terminate" %}</a>'; var termBtn = '<a class="btn btn-xs btn-danger btn-term" disabled value="sessionID" terminal="terminalID" >{% trans "Terminate" %}</a>';
if (rowData.protocol === "ssh" && "{{ request.user.is_org_admin }}" === "True") { if ("{{ request.user.is_org_admin }}" === "True") {
termBtn = termBtn.replace("disabled", "") termBtn = termBtn.replace("disabled", "")
.replace("sessionID", cellData) .replace("sessionID", cellData)
.replace("terminalID", rowData.terminal) .replace("terminalID", rowData.terminal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment