Browse Source

Fix when user is not logged

master
tr4ck3ur des JM2L 9 years ago
parent
commit
1aa75277ec
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      jm2l/templates/view_event.mako

+ 2
- 2
jm2l/templates/view_event.mako View File

@@ -15,9 +15,9 @@ ${event.start_time.strftime('%H:%M')} à ${event.end_time.strftime('%H:%M')}
%if event.event_uid:
<a href="http://jm2l.linux-azur.org/node/${event.event_uid}">Link</a> -
%endif
% if event.for_year==2015 and (request.user.Staff or request.user in event.intervenants):
% if event.for_year==2015 and request.user and (request.user.Staff or request.user in event.intervenants):
<a href="/MesJM2L/${event.for_year}/${event.event_type}/${event.slug}">Editer</a>
% elif request.user.Staff:
% elif request.user and request.user.Staff:
<a href="/MesJM2L/${event.for_year}/${event.event_type}/${event.slug}">Editer</a>
% endif
<h3 style="line-height:30px;">${event.name}</h3>


Loading…
Cancel
Save