mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add more privileges to API user.
This commit is contained in:
parent
45c9d0c120
commit
0824c24bf6
@ -33,9 +33,13 @@ func New(config *config.Session) *SessionManagerCtx {
|
|||||||
manager: manager,
|
manager: manager,
|
||||||
logger: manager.logger.With().Str("session_id", "API").Logger(),
|
logger: manager.logger.With().Str("session_id", "API").Logger(),
|
||||||
profile: types.MemberProfile{
|
profile: types.MemberProfile{
|
||||||
Name: "API Session",
|
Name: "API Session",
|
||||||
IsAdmin: true,
|
IsAdmin: true,
|
||||||
CanLogin: true,
|
CanLogin: true,
|
||||||
|
CanConnect: false,
|
||||||
|
CanWatch: true,
|
||||||
|
CanHost: true,
|
||||||
|
CanAccessClipboard: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user