mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-31 02:59:42 +02:00
add access controll to user pages
This commit is contained in:
parent
8d2d571683
commit
7dafa6c7fe
4 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,7 @@ import { useAsyncKey } from "~/composables/use-utils";
|
|||
|
||||
export default defineComponent({
|
||||
components: { RecipeCardSection },
|
||||
middleware: "auth",
|
||||
setup() {
|
||||
const api = useUserApi();
|
||||
const route = useRoute();
|
||||
|
|
|
@ -69,6 +69,7 @@ import { useUserApi } from "~/composables/api";
|
|||
import { VForm } from "~/types/vuetify";
|
||||
|
||||
export default defineComponent({
|
||||
middleware: ["auth", "advanced-only"],
|
||||
setup() {
|
||||
const nuxtContext = useContext();
|
||||
|
||||
|
|
|
@ -135,6 +135,7 @@ export default defineComponent({
|
|||
UserAvatar,
|
||||
UserPasswordStrength,
|
||||
},
|
||||
middleware: "auth",
|
||||
setup() {
|
||||
const { $auth } = useContext();
|
||||
const user = computed(() => $auth.user as unknown as UserOut);
|
||||
|
|
|
@ -207,7 +207,7 @@ export default defineComponent({
|
|||
UserAvatar,
|
||||
StatsCards,
|
||||
},
|
||||
middleware: ["auth"],
|
||||
middleware: "auth",
|
||||
scrollToTop: true,
|
||||
setup() {
|
||||
const { $auth, i18n } = useContext();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue