mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 07:09:41 +02:00
fix admin pages accessible by non admin users (#2988)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
parent
43958527f4
commit
030588e5bb
2 changed files with 11 additions and 1 deletions
|
@ -34,7 +34,7 @@ import { SidebarLinks } from "~/types/application-types";
|
|||
|
||||
export default defineComponent({
|
||||
components: { AppHeader, AppSidebar, TheSnackbar },
|
||||
middleware: "auth",
|
||||
middleware: ["auth", "admin-only"],
|
||||
auth: true,
|
||||
setup() {
|
||||
const { $globals, i18n, $vuetify } = useContext();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue