fix(backend): sync user tunnel status and relax forward speedId permission check

- Return actual user_tunnel.status in admin permission list instead of hardcoded 1
- Allow non-admin users to update forwards when keeping the same speedId selection
- Add contract tests for user tunnel status mapping and forward permission edge case

Entire-Checkpoint: deb90fb942ee
This commit is contained in:
sagitchu
2026-03-08 00:56:13 +08:00
parent addf83a249
commit 3e11549370
7 changed files with 158 additions and 8 deletions
+1
View File
@@ -573,6 +573,7 @@ type UserTunnelDetail struct {
UserID int64
TunnelID int64
TunnelName string
Status int
TunnelFlow int
Flow int64
InFlow int64