Open
Description
Currently I have a menu where I use the is_authenticated
validation of menu_generator
so I don't to ask that again in my own validator, but due the fact all validators are evaluated, an anonymous user reaches my validator and fails. Here is and example:
MENUS = {
"NAV_MENU_LEFT": [
{
"name": _("Users"),
"url": "/",
"icon_class": "fal fa-user",
"validators": [
"menu_generator.validators.is_authenticated",
("users.validators.has_user_type", "superuser"),
],
}
]
}
Metadata
Metadata
Assignees
Labels
No labels