@edgedev/firebase 2.1.63 → 2.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/edgeFirebase.ts +7 -0
  2. package/package.json +1 -1
package/edgeFirebase.ts CHANGED
@@ -370,8 +370,15 @@ export const EdgeFirebase = class {
370
370
  // Took this out because if another client is logged in, it breaks the other client
371
371
  // await this.ruleHelperReset();
372
372
  await this.initUserMetaPermissions(docSnap);
373
+ if (this.user.roles.length > 0 || this.user.specialPermissions.length > 0) {
373
374
  this.user.loggedIn = true;
374
375
  this.user.loggingIn = false;
376
+ } else {
377
+ this.user.loggedIn = false;
378
+ this.user.loggingIn = false;
379
+ this.user.logInError = true;
380
+ this.user.logInErrorMessage = "You do not have permission to access this application. Please contact your administrator.";
381
+ }
375
382
  };
376
383
 
377
384
  private waitForUser = async(): Promise<void> => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "2.1.63",
3
+ "version": "2.1.64",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 plugin for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {