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
Branches
Tags
1 merge request!49Resolve "Add rules and permissions"
...@@ -60,7 +60,12 @@ MENUS = { ...@@ -60,7 +60,12 @@ MENUS = {
"name": _("Extra marks"), "name": _("Extra marks"),
"url": "extra_marks", "url": "extra_marks",
"icon": "label", "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.
Please register or to comment