0
0
Fork 0

Provide admin status in credentials object

This commit is contained in:
Oliver Akins 2022-07-31 17:49:39 -06:00
parent ce85ca2be0
commit 0fc40846ce
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -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`);