Remove Role Base Authentication
How to remove role-based authentication from all page.
Temporary Disable Role-Based Authentication
Step 1: Update app-routing.module.ts and navigation.ts
app-routing.module.ts and navigation.tsdata: { roles: [Role.Admin, Role.User] }data: { roles: [Role.Admin] }This ensures that all users are treated as Admin, bypassing role-based restrictions.
Remove Role Base Authentication Permanent
Step 1: Remove Role Import
import { Role } from './theme/shared/_helpers/role';Step 2: Remove Role-Based Data Restrictions
Step 3: Modify auth.guard.ts to Remove Authorization Check
auth.guard.ts to Remove Authorization CheckStep 4: Modify nav-content.component.ts to Remove Role Filtering
nav-content.component.ts to Remove Role FilteringStep 5: Remove Role-Based UI Restrictions
Step 6: Modify Login Page UI
Last updated