@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.
- package/edgeFirebase.ts +7 -0
- 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> => {
|