From 1aa75277ec6518ad0498a0a6c3482b56df372614 Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Mon, 23 Mar 2015 20:18:28 +0100 Subject: [PATCH] Fix when user is not logged --- jm2l/templates/view_event.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jm2l/templates/view_event.mako b/jm2l/templates/view_event.mako index 9b0762f..d0b3313 100644 --- a/jm2l/templates/view_event.mako +++ b/jm2l/templates/view_event.mako @@ -15,9 +15,9 @@ ${event.start_time.strftime('%H:%M')} à ${event.end_time.strftime('%H:%M')} %if event.event_uid: Link - %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): Editer -% elif request.user.Staff: +% elif request.user and request.user.Staff: Editer % endif

${event.name}