mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-02 02:03:20 -05:00
update comments
This commit is contained in:
@@ -3,7 +3,7 @@ interface CanManageRedirectParams {
|
||||
redirect: (path: string) => void
|
||||
}
|
||||
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)
|
||||
if (!$auth.user.canManage) {
|
||||
console.warn("User is not allowed to manage group settings");
|
||||
|
||||
Reference in New Issue
Block a user