Complete infrastructure reorganization to role-based structure
All checks were successful
Build And Push Image / docker (push) Successful in 1m50s
All checks were successful
Build And Push Image / docker (push) Successful in 1m50s
- Created all missing admin pages (users, settings, events, members, payments) - Created board pages (governance, meetings) - Updated dashboard router to use new /admin, /board, /member structure - Added isMember alias to useAuth composable for consistency - All pages now use correct role-based layouts and middleware - Build verified successfully The platform now has a clean separation: - /admin/* - Administrator dashboard and tools - /board/* - Board member governance and meetings - /member/* - Member portal and resources Next steps: Complete remaining member pages and clean up old dashboard files
This commit is contained in:
@@ -41,6 +41,9 @@ export const useAuth = () => {
|
||||
// Fallback to legacy tier system
|
||||
return user.value?.tier === 'user';
|
||||
});
|
||||
|
||||
// Alias for consistency with new naming convention
|
||||
const isMember = isUser;
|
||||
|
||||
const isBoard = computed(() => {
|
||||
// Check new realm roles first
|
||||
@@ -300,6 +303,7 @@ export const useAuth = () => {
|
||||
// Tier-based properties
|
||||
userTier,
|
||||
isUser,
|
||||
isMember, // Alias for isUser, better naming convention
|
||||
isBoard,
|
||||
isAdmin,
|
||||
firstName,
|
||||
|
||||
Reference in New Issue
Block a user