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:
Joel Jacob Stephen
2023-12-14 12:36:05 +05:30
committed by GitHub
parent 5209c0a8ca
commit c47e2e7767
3 changed files with 5 additions and 2 deletions

View File

@@ -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();
});