클럽 설정 기능
This commit is contained in:
@@ -19,6 +19,7 @@ const EventManagement = () => import('@/views/club/EventManagement.vue');
|
||||
const EventCalendar = () => import('@/views/club/EventCalendar.vue');
|
||||
const ScoreManagement = () => import('@/views/club/ScoreManagement.vue');
|
||||
const UserClubCreate = () => import('@/views/club/ClubCreate.vue');
|
||||
const ClubSettings = () => import('@/views/club/ClubSettings.vue');
|
||||
|
||||
// 구독 관리 컴포넌트 import
|
||||
const ClubSubscriptionManagement = () => import('@/views/club/subscription/SubscriptionManagement.vue');
|
||||
@@ -133,6 +134,15 @@ const routes = [
|
||||
requiresAuth: true,
|
||||
requiredRoles: ['admin', '모임장', '운영진']
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
name: 'ClubSettings',
|
||||
component: ClubSettings,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
requiredRoles: ['admin', '모임장', '운영진']
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -201,8 +211,9 @@ router.beforeEach(async (to, from, next) => {
|
||||
return;
|
||||
}
|
||||
|
||||
// 클럽 구독 관리 페이지에 접근하려는 경우, 권한 확인
|
||||
if (to.name === 'ClubSubscription' && (userClubRole !== 'admin' && userClubRole !== '모임장' && userClubRole !== '운영진')) {
|
||||
// 클럽 구독 관리 또는 설정 페이지에 접근하려는 경우, 권한 확인
|
||||
if ((to.name === 'ClubSubscription' || to.name === 'ClubSettings') &&
|
||||
(userClubRole !== 'admin' && userClubRole !== '모임장' && userClubRole !== '운영진')) {
|
||||
next({ name: 'ClubDashboard' });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user