mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
add access controll to user pages
This commit is contained in:
parent
8d2d571683
commit
7dafa6c7fe
@ -14,6 +14,7 @@ import { useAsyncKey } from "~/composables/use-utils";
|
|||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: { RecipeCardSection },
|
components: { RecipeCardSection },
|
||||||
|
middleware: "auth",
|
||||||
setup() {
|
setup() {
|
||||||
const api = useUserApi();
|
const api = useUserApi();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
@ -69,6 +69,7 @@ import { useUserApi } from "~/composables/api";
|
|||||||
import { VForm } from "~/types/vuetify";
|
import { VForm } from "~/types/vuetify";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
middleware: ["auth", "advanced-only"],
|
||||||
setup() {
|
setup() {
|
||||||
const nuxtContext = useContext();
|
const nuxtContext = useContext();
|
||||||
|
|
||||||
|
@ -135,6 +135,7 @@ export default defineComponent({
|
|||||||
UserAvatar,
|
UserAvatar,
|
||||||
UserPasswordStrength,
|
UserPasswordStrength,
|
||||||
},
|
},
|
||||||
|
middleware: "auth",
|
||||||
setup() {
|
setup() {
|
||||||
const { $auth } = useContext();
|
const { $auth } = useContext();
|
||||||
const user = computed(() => $auth.user as unknown as UserOut);
|
const user = computed(() => $auth.user as unknown as UserOut);
|
||||||
|
@ -207,7 +207,7 @@ export default defineComponent({
|
|||||||
UserAvatar,
|
UserAvatar,
|
||||||
StatsCards,
|
StatsCards,
|
||||||
},
|
},
|
||||||
middleware: ["auth"],
|
middleware: "auth",
|
||||||
scrollToTop: true,
|
scrollToTop: true,
|
||||||
setup() {
|
setup() {
|
||||||
const { $auth, i18n } = useContext();
|
const { $auth, i18n } = useContext();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user