Skip to content
Snippets Groups Projects
Commit fe5d0416 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

add menu validator for extra marks

parent 3daf91e8
No related branches found
No related tags found
1 merge request!49Resolve "Add rules and permissions"
......@@ -60,7 +60,12 @@ MENUS = {
"name": _("Extra marks"),
"url": "extra_marks",
"icon": "label",
"validators": ["menu_generator.validators.is_superuser"],
"validators": [
(
"aleksis.core.util.predicates.permission_validator",
"alsijil.view_extramarks",
),
],
},
],
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment