feat: implement tenant-side creator audit feature and update related tests and documentation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -225,10 +225,18 @@ const router = createRouter({
|
||||
]
|
||||
});
|
||||
|
||||
const isDemoOnlyRoute = (path) => {
|
||||
return path.startsWith('/uikit/') || path === '/blocks' || path === '/pages/empty' || path === '/pages/crud' || path === '/documentation' || path === '/landing';
|
||||
};
|
||||
|
||||
let tokenValidated = false;
|
||||
let tokenValidationPromise = null;
|
||||
|
||||
router.beforeEach(async (to) => {
|
||||
if (!import.meta.env.DEV && isDemoOnlyRoute(to.path)) {
|
||||
return { name: 'dashboard' };
|
||||
}
|
||||
|
||||
if (to.meta?.requiresAuth !== true) return true;
|
||||
|
||||
const isAuthed = hasSuperAuthToken();
|
||||
|
||||
Reference in New Issue
Block a user