Skip to content

Commit

Permalink
block DAO page for non-admins for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Oct 29, 2024
1 parent 5ad267e commit 713656e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/routes/dao/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { error } from '@sveltejs/kit';

export async function load({ parent }) {
const { admin } = await parent();

if (!admin) {
error(404, 'Not found');
}
}

0 comments on commit 713656e

Please sign in to comment.