Fix a few routes being accessible without auth

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-10-24 17:32:15 +02:00
parent 5cb3ef9110
commit 992077044a
3 changed files with 13 additions and 3 deletions

View File

@@ -83,12 +83,14 @@ export const groupsRoutes: RouteConfig[] = [
component: () => import("@/views/Posts/Edit.vue"),
props: true,
name: GroupsRouteName.POST_CREATE,
meta: { requiredAuth: true },
},
{
path: "/p/:slug/edit",
component: () => import("@/views/Posts/Edit.vue"),
props: (route: Route) => ({ ...route.params, ...{ isUpdate: true } }),
name: GroupsRouteName.POST_EDIT,
meta: { requiredAuth: true },
},
{
path: "/p/:slug",