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

Change rule name

parent 4964c534
No related branches found
No related tags found
1 merge request!49Resolve "Add rules and permissions"
Pipeline #3332 passed
...@@ -134,8 +134,8 @@ delete_excusetype_predicate = has_person & has_global_perm("alsijil.delete_excus ...@@ -134,8 +134,8 @@ delete_excusetype_predicate = has_person & has_global_perm("alsijil.delete_excus
add_perm("alsijil.delete_excusetype", delete_excusetype_predicate) add_perm("alsijil.delete_excusetype", delete_excusetype_predicate)
# View extra mark list # View extra mark list
view_extramark_predicate = has_person & has_global_perm("alsijil.view_extramark") view_extramarks_predicate = has_person & has_global_perm("alsijil.view_extramark")
add_perm("alsijil.view_extramark", view_extramark_predicate) add_perm("alsijil.view_extramarks", view_extramarks_predicate)
# Add extra mark # Add extra mark
add_extramark_predicate = has_person & has_global_perm("alsijil.add_extramark") add_extramark_predicate = has_person & has_global_perm("alsijil.add_extramark")
......
...@@ -537,7 +537,7 @@ class ExcuseTypeListView(PermissionRequiredMixin, SingleTableView): ...@@ -537,7 +537,7 @@ class ExcuseTypeListView(PermissionRequiredMixin, SingleTableView):
model = ExcuseType model = ExcuseType
table_class = ExcuseTypeTable table_class = ExcuseTypeTable
permission_required = "alsijil.view_excusetype" permission_required = "alsijil.view_excusetypes"
template_name = "alsijil/excuse_type/list.html" template_name = "alsijil/excuse_type/list.html"
......
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