We need to update the current navigation system to align with the business logic. The new structure will support two distinct user roles: admin and user. Each role will have its own sidebar and specific accessible pages, along with different levels of data access. For example, admins will have full access to all organizations.
To implement this, we need to:
Create two layouts: userLayout and adminLayout, which will be rendered based on the user's role.
Update the routing system to include role-based metadata.
Implement route guards to restrict access based on user roles.
Refine the router-view logic in App.vue to handle dynamic layouts and routing seamlessly.
Acceptance Criteria
[ ] New navigation system following the requirements
Deliverable
115
Description
We need to update the current navigation system to align with the business logic. The new structure will support two distinct user roles: admin and user. Each role will have its own sidebar and specific accessible pages, along with different levels of data access. For example, admins will have full access to all organizations.
To implement this, we need to:
Acceptance Criteria