Skip to content

Commit

Permalink
fix: 修复control查询bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yqchilde committed Feb 27, 2023
1 parent 5bb4cab commit 4d13094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (m *Control) IsEnabledIn(gid string) bool {
m.Cache["all"] = c.Enable
return c.Enable
}
if m.Manager.D.Table(m.Service).First(&c, "gid = ?", "all").Error == nil {
if m.Manager.D.Table(m.Service).First(&c, "gid = ?", gid).Error == nil {
m.Cache[gid] = c.Enable
return c.Enable
}
Expand Down

0 comments on commit 4d13094

Please sign in to comment.