mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-04 03:42:40 +02:00
session profile decoupled.
This commit is contained in:
parent
7d4f7694b9
commit
4a28307c1e
15 changed files with 38 additions and 79 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func (h *MessageHandlerCtx) controlRelease(session types.Session) error {
|
||||
if !session.CanHost() {
|
||||
if !session.Profile().CanHost {
|
||||
h.logger.Debug().Str("session_id", session.ID()).Msg("is not allowed to host")
|
||||
return nil
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ func (h *MessageHandlerCtx) controlRelease(session types.Session) error {
|
|||
}
|
||||
|
||||
func (h *MessageHandlerCtx) controlRequest(session types.Session) error {
|
||||
if !session.CanHost() {
|
||||
if !session.Profile().CanHost {
|
||||
h.logger.Debug().Str("session_id", session.ID()).Msg("is not allowed to host")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue