Merge remote-tracking branch 'origin/uate' into dev
build-run / Run Lint, Build and Deploy (push) Canceled after 0s
Publish Image in Docker Hub / build (push) Canceled after 0s
Playwright E2E Tests / Run Playwright Tests (push) Canceled after 0s
Tests / testRigor (push) Canceled after 0s

This commit is contained in:
2026-07-27 14:21:51 +05:30
47 changed files with 2790 additions and 245 deletions
@@ -416,6 +416,14 @@ export class AuthenticationService {
return false;
}
/** Returns true when the logged-in user has the "Cashier" role. */
hasCashierRole(): boolean {
const creds = this.getCredentials();
if (!creds || !creds.roles) return false;
const roleNames: string[] = (creds.roles as any[]).map((r) => (r.name || r.role || '').toLowerCase().trim());
return roleNames.some((n) => n === 'cashier');
}
/**
* Sets the user credentials.
*