added the elmeent on the nav and fixed the payments transactions
All checks were successful
Build frontend / build (push) Successful in 1m27s

This commit is contained in:
mouazkh
2026-06-23 23:32:07 +03:00
parent 61e527fab3
commit 199478f237
8 changed files with 958 additions and 33 deletions

View File

@ -126,12 +126,20 @@ const AuthService = Object.freeze({
return this.getRoles().includes('Owner');
},
/**
* User has RealEstateAgent role
* @returns {boolean}
*/
isAgent() {
return this.getRoles().includes('RealEstateAgent');
},
/**
* Authenticated user without Owner role (i.e. customer)
* @returns {boolean}
*/
isCustomer() {
return this.isAuthenticated() && !this.isOwner();
return this.isAuthenticated() && !this.isOwner() && !this.isAgent();
},
/**