mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02:00
update comments
This commit is contained in:
parent
dff351a8eb
commit
7dbc031725
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ interface AdvancedOnlyRedirectParams {
|
|||
redirect: (path: string) => void
|
||||
}
|
||||
export default function ({ $auth, redirect }: AdvancedOnlyRedirectParams) {
|
||||
// If the user is not allowed to organize redirect to the home page
|
||||
// If the user is not allowed to access advanced features redirect to the home page
|
||||
if (!$auth.user.advanced) {
|
||||
console.warn("User is not allowed to access advanced features");
|
||||
return redirect("/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue