Expanded edit fields. Added revision history to scene and user pages.

This commit is contained in:
2024-10-06 02:45:56 +02:00
parent 8bf9e22b39
commit 8f843f321d
57 changed files with 1664 additions and 156 deletions

View File

@@ -0,0 +1,13 @@
import { render } from 'vike/abort'; /* eslint-disable-line import/extensions */
export function onBeforeRender(pageContext) {
if (pageContext.user.role === 'user') {
throw render(404);
}
return {
pageContext: {
title: pageContext.routeParams.section,
},
};
}