feat: user roles - admins and users limited to the machines given to them, user editor with machines, password sign-in and its lock; direct address without Cloudflare as the agents' fallback and in the installer; version 0.1.2

This commit is contained in:
redtea committed 2026-10-15 10:56:19 +03:00
1 parent 36dc12b69d
commit 021da93229
29 files changed
+844 -97

No files matched your search

+4
View File
@@ -151,6 +151,10 @@ func (s *Server) handleFSShip(w http.ResponseWriter, r *http.Request) {
writeJSON(w, proto.TaskResult{Error: "не выбрана машина"})
return
}
if !s.db.CanUseAgent(s.currentAdmin(r), q.To) {
writeJSON(w, proto.TaskResult{Error: "нет доступа к той машине"})
return
}
if !s.fsAgent(w, q.To, true) {
return
}