✏️ 修正 moyu 提醒

This commit is contained in:
fumiama 2021-11-26 11:39:43 +08:00
parent 37d27e07e9
commit 9de065d31a

View File

@ -103,7 +103,7 @@ func (m *Control) IsEnabledIn(gid int64) bool {
m.RLock()
err = db.Find(m.service, &c, "WHERE gid = 0")
m.RUnlock()
if err == nil {
if err == nil && gid == 0 {
logrus.Debugf("[control] plugin %s of all : %d", m.service, c.Disable)
return c.Disable == 0
}