mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
session profile decoupled.
This commit is contained in:
@ -196,7 +196,7 @@ func (manager *SessionManagerCtx) AdminBroadcast(v interface{}, exclude interfac
|
||||
defer manager.sessionsMu.Unlock()
|
||||
|
||||
for id, session := range manager.sessions {
|
||||
if !session.IsConnected() || !session.IsAdmin() {
|
||||
if !session.IsConnected() || !session.Profile().IsAdmin {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user