mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
add isAdmin to auth state
This commit is contained in:
@@ -91,6 +91,7 @@ export const JellyfinController: InternalControllerEndpoint = {
|
||||
|
||||
return {
|
||||
credential: res.body.AccessToken,
|
||||
isAdmin: Boolean(res.body.User.Policy.IsAdministrator),
|
||||
userId: res.body.User.Id,
|
||||
username: res.body.User.Name,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user