Provide admin status in credentials object
This commit is contained in:
parent
ce85ca2be0
commit
0fc40846ce
1 changed files with 8 additions and 1 deletions
|
|
@ -73,7 +73,14 @@ async function init() {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
return { isValid, credentials: { username, access: user?.access } };
|
return {
|
||||||
|
isValid,
|
||||||
|
credentials: {
|
||||||
|
username,
|
||||||
|
access: user?.access,
|
||||||
|
admin: user?.admin,
|
||||||
|
},
|
||||||
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
server.auth.default(`basic`);
|
server.auth.default(`basic`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue