Ver código fonte

Fix when user is not logged

master
tr4ck3ur des JM2L 9 anos atrás
pai
commit
1aa75277ec
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      jm2l/templates/view_event.mako

+ 2
- 2
jm2l/templates/view_event.mako Ver arquivo

@@ -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>


Carregando…
Cancelar
Salvar