mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-04 03:42:40 +02:00
IsAdmin + IsConnected.
This commit is contained in:
parent
25fec63455
commit
123fbd8317
8 changed files with 16 additions and 16 deletions
|
@ -27,7 +27,7 @@ func (session *SessionCtx) Name() string {
|
|||
return session.profile.Name
|
||||
}
|
||||
|
||||
func (session *SessionCtx) Admin() bool {
|
||||
func (session *SessionCtx) IsAdmin() bool {
|
||||
return session.profile.IsAdmin
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ func (session *SessionCtx) VerifySecret(secret string) bool {
|
|||
return session.profile.Secret == secret
|
||||
}
|
||||
|
||||
func (session *SessionCtx) Connected() bool {
|
||||
func (session *SessionCtx) IsConnected() bool {
|
||||
// TODO: Refactor.
|
||||
return session.websocket_connected// && session.webrtc_connected
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue