Skip to content

Commit 473f9fa

Browse files
modified create a organier option
1 parent 735a319 commit 473f9fa

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

app/eventyay/control/templates/pretixcontrol/organizers/index.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ <h1>{% trans "Organizers" %}</h1>
2020
</button>
2121
</div>
2222
</form>
23-
<p>
24-
<a href='{% url "control:organizers.add" %}' class="btn btn-default">
25-
<span class="fa fa-plus"></span>
26-
{% trans "Create a new organizer" %}
27-
</a>
28-
</p>
2923
<table class="table table-condensed table-hover">
3024
<thead>
3125
<tr>

app/eventyay/eventyay_common/templates/eventyay_common/organizers/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ <h1>{% translate "Organizers" %}</h1>
1818
</button>
1919
</div>
2020
</form>
21-
{% if staff_session %}
2221
<p>
2322
<a href='{% url "eventyay_common:organizers.add" %}' class="btn btn-default">
2423
<span class="fa fa-plus"></span>
2524
{% translate "Create a new organizer" %}
2625
</a>
2726
</p>
28-
{% endif %}
2927
<table class="table table-condensed table-hover">
3028
<thead>
3129
<tr>

app/eventyay/eventyay_common/views/organizer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ class OrganizerCreate(CreateView):
5050
template_name = 'eventyay_common/organizers/create.html'
5151
context_object_name = 'organizer'
5252

53-
def dispatch(self, request, *args, **kwargs):
54-
if not request.user.has_active_staff_session(self.request.session.session_key):
55-
raise PermissionDenied()
56-
return super().dispatch(request, *args, **kwargs)
5753

5854
@transaction.atomic
5955
def form_valid(self, form):

0 commit comments

Comments
 (0)