diff --git a/frontend/middleware/advanced-only.ts b/frontend/middleware/advanced-only.ts index e9d69a2fd..378e3044b 100644 --- a/frontend/middleware/advanced-only.ts +++ b/frontend/middleware/advanced-only.ts @@ -3,7 +3,7 @@ interface AdvancedOnlyRedirectParams { redirect: (path: string) => void } export default function ({ $auth, redirect }: AdvancedOnlyRedirectParams) { - // If the user is not allowed to organize redirect to the home page + // If the user is not allowed to access advanced features redirect to the home page if (!$auth.user.advanced) { console.warn("User is not allowed to access advanced features"); return redirect("/") diff --git a/frontend/middleware/can-manage-only.ts b/frontend/middleware/can-manage-only.ts index defdb89ad..9c09819ca 100644 --- a/frontend/middleware/can-manage-only.ts +++ b/frontend/middleware/can-manage-only.ts @@ -3,7 +3,7 @@ interface CanManageRedirectParams { redirect: (path: string) => void } export default function ({ $auth, redirect }: CanManageRedirectParams) { - // If the user is not allowed to organize redirect to the home page + // If the user is not allowed to manage group settings redirect to the home page console.log($auth.user) if (!$auth.user.canManage) { console.warn("User is not allowed to manage group settings");