diff --git a/src/mavo-firebase-firestore.js b/src/mavo-firebase-firestore.js index a23ad55..4ecf493 100644 --- a/src/mavo-firebase-firestore.js +++ b/src/mavo-firebase-firestore.js @@ -52,7 +52,7 @@ // Hide the Login button if either of auth providers is specified $.extend(Mavo.UI.Bar.controls.login, { condition () { - return !!mavo.primaryBackend.project && !mavo.primaryBackend.authProviders.length; + return Boolean(mavo.primaryBackend.project)? !mavo.primaryBackend.authProviders?.length : mavo.primaryBackend.permissions.login; } }); }