Skip to content

Commit

Permalink
Don't show admin links if not admin (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Aug 29, 2023
1 parent a6eb489 commit 591a8fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/pages/_new/admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Background from "components/NewLayout/Background"
import Container from "/components/Container"
import { Links } from "/components/NewLayout/Admin"
import { useBreadcrumbs } from "/hooks/useBreadcrumbs"
import withAdmin from "/lib/with-admin"

const Admin = () => {
useBreadcrumbs([
Expand All @@ -20,4 +21,4 @@ const Admin = () => {
)
}

export default Admin
export default withAdmin(Admin)

0 comments on commit 591a8fa

Please sign in to comment.