diff --git a/frontend/middleware/advanced-only.ts b/frontend/middleware/advanced-only.ts index e9d69a2fd852..378e3044b3ea 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 defdb89ad4b8..9c09819ca3d6 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");