Skip to content

Commit 3efd6f6

Browse files
committed
fix: allow both sponsors and moderators to edit club settings
1 parent f64049b commit 3efd6f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

intranet/templates/eighth/activity.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
{% endif %}
7979
{% endif %}
8080

81-
{% if request.user.sponsor_obj and request.user.sponsor_obj in scheduled_activity.activity.sponsors.all or request.user in activity.club_sponsors.all %}
81+
{% if request.user.sponsor_obj and request.user.sponsor_obj in activity.sponsors.all or request.user in activity.club_sponsors.all %}
8282
<a class="button print-hide" href="{% url 'eighth_activity_settings' activity.id %}">
8383
<i class="fa fa-users"></i>
8484
Club Announcement Settings

intranet/templates/eighth/activity_settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="eighth primary-content">
4141
<a class="button" onclick="javascript:history.back()">
4242
<i class="fa fa-arrow-left"></i>
43-
Back to Attendance
43+
Back
4444
</a>
4545
<h2>Club Announcements Settings for {{ activity }}</h2>
4646
<p>

intranet/templates/eighth/take_attendance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ <h3>Passes</h3>
497497
&nbsp; &nbsp;
498498
<a class="button print-hide" href="{% url 'eighth_email_students' scheduled_activity.id %}">Email Students</a>
499499
{% endif %}
500-
{% if request.user.sponsor_obj and request.user.sponsor_obj in scheduled_activity.activity.sponsors.all or request.user in activity.club_sponsors.all %}
500+
{% if request.user.sponsor_obj and request.user.sponsor_obj in scheduled_activity.activity.sponsors.all or request.user in scheduled_activity.activity.club_sponsors.all %}
501501
<br>
502502
<br>
503503
<a class="button print-hide" href="{% url 'eighth_activity_settings' scheduled_activity.activity.id %}">

0 commit comments

Comments
 (0)