mirror of
https://github.com/khairul169/vaulterm.git
synced 2026-09-15 17:03:30 +07:00
feat: add group
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user