fix: notify that the user is not an admin when trying to login with a non admin account in admin dashboard (#3651)
This commit is contained in:
committed by
GitHub
parent
5209c0a8ca
commit
c47e2e7767
@@ -184,6 +184,10 @@ const nonAdminUser = ref(false);
|
||||
const allowedAuthProviders = ref<string[]>([]);
|
||||
|
||||
onMounted(async () => {
|
||||
const user = auth.getCurrentUser();
|
||||
if (user && !user.isAdmin) {
|
||||
nonAdminUser.value = true;
|
||||
}
|
||||
allowedAuthProviders.value = await getAllowedAuthProviders();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user