IsAdmin + IsConnected.

This commit is contained in:
Miroslav Šedivý 2020-12-02 16:49:51 +01:00
parent 25fec63455
commit 123fbd8317
8 changed files with 16 additions and 16 deletions

View file

@ -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
}