mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-28 07:27:57 +02:00
IsAdmin + IsConnected.
This commit is contained in:
parent
25fec63455
commit
123fbd8317
8 changed files with 16 additions and 16 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
||||
if !session.Admin() {
|
||||
if !session.IsAdmin() {
|
||||
h.logger.Debug().Msg("user not admin")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue