mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-16 05:13:36 +00:00
Resolve tunnel source credentials (#1003)
This commit is contained in:
@@ -1937,6 +1937,7 @@ app.post(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const tunnelName = tunnelConfig.name;
|
const tunnelName = tunnelConfig.name;
|
||||||
|
tunnelConfig.requestingUserId = userId;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!validateTunnelConfig(tunnelName, tunnelConfig)) {
|
if (!validateTunnelConfig(tunnelName, tunnelConfig)) {
|
||||||
@@ -1967,10 +1968,6 @@ app.post(
|
|||||||
});
|
});
|
||||||
return res.status(403).json({ error: "Access denied to this host" });
|
return res.status(403).json({ error: "Access denied to this host" });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (accessInfo.isShared && !accessInfo.isOwner) {
|
|
||||||
tunnelConfig.requestingUserId = userId;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pendingTunnelOperations.has(tunnelName)) {
|
if (pendingTunnelOperations.has(tunnelName)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user