Skip to content

Commit

Permalink
Fix issue when Firebase is not primary backend but still determines w…
Browse files Browse the repository at this point in the history
…hether the Login button is shown or not
  • Loading branch information
DmitrySharabin committed Dec 29, 2020
1 parent 6056026 commit a1afb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavo-firebase-firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
}
Expand Down

0 comments on commit a1afb34

Please sign in to comment.