Delete admin
Some checks failed
Build frontend / build (push) Failing after 1m20s

This commit is contained in:
Rahaf
2026-06-10 19:50:49 +03:00
parent 34da1314d4
commit 71b1a71904
21 changed files with 128 additions and 4940 deletions

View File

@ -127,19 +127,11 @@ const AuthService = Object.freeze({
},
/**
* User has Admin role
* @returns {boolean}
*/
isAdmin() {
return this.getRoles().includes('Admin');
},
/**
* Authenticated user without Owner or Admin role (i.e. customer)
* Authenticated user without Owner role (i.e. customer)
* @returns {boolean}
*/
isCustomer() {
return this.isAuthenticated() && !this.isOwner() && !this.isAdmin();
return this.isAuthenticated() && !this.isOwner();
},
/**
@ -160,3 +152,4 @@ const AuthService = Object.freeze({
});
export default AuthService;