Skip to content
Snippets Groups Projects
Commit e41b4111 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Use correct rule for registrations

parent 2399f6a4
No related branches found
No related tags found
1 merge request!17Use correct rule for registrations
Pipeline #60276 failed
...@@ -95,7 +95,7 @@ MENUS = { ...@@ -95,7 +95,7 @@ MENUS = {
"validators": [ "validators": [
( (
"aleksis.core.util.predicates.permission_validator", "aleksis.core.util.predicates.permission_validator",
"paweljong.manage_registrations", "paweljong.view_registrations_rule",
) )
], ],
}, },
......
...@@ -142,7 +142,7 @@ def registrations(request: HttpRequest) -> HttpResponse: ...@@ -142,7 +142,7 @@ def registrations(request: HttpRequest) -> HttpResponse:
# Get all registrations # Get all registrations
registrations = queryset_rules_filter( registrations = queryset_rules_filter(
request.user, EventRegistration.objects.all(), "paweljong.manage_registrations_rule" request.user, EventRegistration.objects.all(), "paweljong.view_registration_rule"
) )
# Get filter # Get filter
......
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