feat: add group

This commit is contained in:
2024-11-16 23:50:34 +07:00
parent b88b04a235
commit c8e61ed4aa
24 changed files with 534 additions and 86 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ func HandleTerm(c *websocket.Conn) {
user := utils.GetUserWs(c)
hostRepo := hosts.NewRepository(&hosts.Hosts{User: user})
data, err := hostRepo.Get(hostId)
data, err := hostRepo.GetWithKeys(hostId)
if data == nil || !data.HasAccess(&user.User) {
log.Printf("Cannot find host! %v\n", err)