mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-30 10:39:43 +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
|
redirect: (path: string) => void
|
||||||
}
|
}
|
||||||
export default function ({ $auth, redirect }: AdvancedOnlyRedirectParams) {
|
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) {
|
if (!$auth.user.advanced) {
|
||||||
console.warn("User is not allowed to access advanced features");
|
console.warn("User is not allowed to access advanced features");
|
||||||
return redirect("/")
|
return redirect("/")
|
||||||
|
|
|
@ -3,7 +3,7 @@ interface CanManageRedirectParams {
|
||||||
redirect: (path: string) => void
|
redirect: (path: string) => void
|
||||||
}
|
}
|
||||||
export default function ({ $auth, redirect }: CanManageRedirectParams) {
|
export default function ({ $auth, redirect }: CanManageRedirectParams) {
|
||||||
// If the user is not allowed to organize redirect to the home page
|
// If the user is not allowed to manage group settings redirect to the home page
|
||||||
console.log($auth.user)
|
console.log($auth.user)
|
||||||
if (!$auth.user.canManage) {
|
if (!$auth.user.canManage) {
|
||||||
console.warn("User is not allowed to manage group settings");
|
console.warn("User is not allowed to manage group settings");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue