mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-02-23 21:41:19 +00:00
Compare commits
No commits in common. "a45d57e51a4d7ef3dcb43a14c8c69a18dd63bf03" and "13414ee0c50760d76c667ebf454258d6272331ef" have entirely different histories.
a45d57e51a
...
13414ee0c5
@ -101,13 +101,11 @@
|
|||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
{% if user.registration.is_volunteer %}
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<a class="btn btn-info" href="{% url "participation:team_authorizations" pk=team.pk %}" data-turbolinks="false">
|
<a class="btn btn-info" href="{% url "participation:team_authorizations" pk=team.pk %}" data-turbolinks="false">
|
||||||
<i class="fas fa-file-archive"></i> {% trans "Download all submitted authorizations" %}
|
<i class="fas fa-file-archive"></i> {% trans "Download all submitted authorizations" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer text-center">
|
<div class="card-footer text-center">
|
||||||
<button class="btn btn-primary" data-toggle="modal" data-target="#updateTeamModal">{% trans "Update" %}</button>
|
<button class="btn btn-primary" data-toggle="modal" data-target="#updateTeamModal">{% trans "Update" %}</button>
|
||||||
|
@ -372,7 +372,8 @@ class TeamAuthorizationsView(LoginRequiredMixin, DetailView):
|
|||||||
user = request.user
|
user = request.user
|
||||||
if not user.is_authenticated:
|
if not user.is_authenticated:
|
||||||
return super().handle_no_permission()
|
return super().handle_no_permission()
|
||||||
if user.registration.is_admin or user.registration.is_volunteer \
|
if user.registration.is_admin or user.registration.participates and user.registration.team.pk == kwargs["pk"] \
|
||||||
|
or user.registration.is_volunteer \
|
||||||
and self.get_object().participation.tournament in user.registration.interesting_tournaments:
|
and self.get_object().participation.tournament in user.registration.interesting_tournaments:
|
||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
raise PermissionDenied
|
raise PermissionDenied
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/2 * * * * cd /code && python manage.py fix_sympa_lists &> /dev/null
|
*/2 * * * * cd /code && python manage.py fix_sympa_lists &> /dev/null
|
||||||
|
|
||||||
# Update matrix channels
|
# Update matrix channels
|
||||||
03 */6 * * * cd /code && python manage.py fix_matrix_channels &> /dev/null
|
03 * * * * cd /code && python manage.py fix_matrix_channels &> /dev/null
|
||||||
|
|
||||||
# Check payments from Hello Asso
|
# Check payments from Hello Asso
|
||||||
*/6 * * * * cd /code && python manage.py check_hello_asso &> /dev/null
|
*/6 * * * * cd /code && python manage.py check_hello_asso &> /dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user