Logo
Explore Help
Sign In
Mirrors/mealie
1
0
Fork 0
You've already forked mealie
mirror of https://github.com/mealie-recipes/mealie.git synced 2026-07-19 14:10:15 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
7092497cd290ffd130b7c935aec7a36a92fcdbae
mealie/frontend/app/middleware/can-manage-household-only.ts

8 lines
236 B
TypeScript
Raw Normal View History

feat: Migrate to Nuxt 3 framework (#5184) Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2025-06-20 00:09:12 +07:00
const { user } = useMealieAuth();
export default defineNuxtRouteMiddleware(() => {
feat: Additional Household Permissions (#4158) Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2024-09-17 10:48:14 -05:00
// If the user is not allowed to manage group settings redirect to the home page
feat: Migrate to Nuxt 3 framework (#5184) Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2025-06-20 00:09:12 +07:00
if (!user.value?.canManageHousehold) {
navigateTo("/");
feat: Additional Household Permissions (#4158) Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2024-09-17 10:48:14 -05:00
}
feat: Migrate to Nuxt 3 framework (#5184) Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2025-06-20 00:09:12 +07:00
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 67ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API