add access controll to user pages

This commit is contained in:
Kuchenpirat 2024-01-31 15:25:21 +00:00
commit 7dafa6c7fe
4 changed files with 4 additions and 1 deletions

View file

@ -135,6 +135,7 @@ export default defineComponent({
UserAvatar,
UserPasswordStrength,
},
middleware: "auth",
setup() {
const { $auth } = useContext();
const user = computed(() => $auth.user as unknown as UserOut);