Send admin flag in the profile

This commit is contained in:
Girish Ramakrishnan
2018-08-03 09:28:58 -07:00
parent 47c8700d42
commit 2a49569805
+2 -1
View File
@@ -31,7 +31,8 @@ function get(req, res, next) {
fallbackEmail: req.user.fallbackEmail,
tokenScopes: req.authInfo.authorizedScopes,
displayName: req.user.displayName,
twoFactorAuthenticationEnabled: req.user.twoFactorAuthenticationEnabled
twoFactorAuthenticationEnabled: req.user.twoFactorAuthenticationEnabled,
admin: req.user.admin
}));
}