From: Thadeu Lima de Souza Cascardo Date: Tue, 4 Nov 2008 22:58:12 +0000 (-0200) Subject: Only forbid people to send comments not to view them X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fema.git;a=commitdiff_plain;h=7d4fd26b8f646644802c8be5b20cc5a3467f0c02 Only forbid people to send comments not to view them --- diff --git a/eventos/views.py b/eventos/views.py index 7a3a9e1..547f9b8 100644 --- a/eventos/views.py +++ b/eventos/views.py @@ -272,7 +272,7 @@ def list_all_talks(request): context_instance=RequestContext(request)) def talk_improve(request, tid): - if not hasattr(request.user, 'palestrante_set'): + if not hasattr(request.user, 'palestrante_set') and request.POST: return forbidden talk = get_object_or_404(Trabalho, pk=tid)