membershipworks: Require "view EventExt" permission for upcoming events
This commit is contained in:
parent
44692d8d9b
commit
1fe097ca86
@ -2,7 +2,7 @@ from datetime import datetime
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib import messages
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.contrib.auth.decorators import permission_required
|
||||
from django.contrib.auth.mixins import PermissionRequiredMixin
|
||||
from django.shortcuts import render
|
||||
from django.views.generic.dates import MonthArchiveView
|
||||
@ -24,8 +24,7 @@ class MemberAutocomplete(autocomplete.Select2QuerySetView):
|
||||
return super().get_queryset()
|
||||
|
||||
|
||||
@login_required
|
||||
# TODO: permission required?
|
||||
@permission_required("membershipworks.view_eventext")
|
||||
def upcoming_events(request):
|
||||
now = datetime.now()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user