From 7bc9eac972938bf1742a30bdb00baa37821593a0 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Tue, 21 Nov 2017 10:28:15 -0200 Subject: [PATCH] Fix #1448 --- sapl/compilacao/views.py | 2 +- sapl/templates/compilacao/publicacao_detail.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sapl/compilacao/views.py b/sapl/compilacao/views.py index 9a763f3b2..e6c402a77 100644 --- a/sapl/compilacao/views.py +++ b/sapl/compilacao/views.py @@ -877,7 +877,7 @@ class PublicacaoCreateView(PublicacaoMixin, FormMessagesMixin, CreateView): class PublicacaoDetailView(PublicacaoMixin, DetailView): model = Publicacao - permission_required = 'compilacao.detail_publicacao' + permission_required = [] class PublicacaoUpdateView(PublicacaoMixin, UpdateView): diff --git a/sapl/templates/compilacao/publicacao_detail.html b/sapl/templates/compilacao/publicacao_detail.html index d157e49f5..985ceed05 100644 --- a/sapl/templates/compilacao/publicacao_detail.html +++ b/sapl/templates/compilacao/publicacao_detail.html @@ -81,8 +81,9 @@
- -

{{ object.url_externa|default:''}}

+ {% if object.url_externa %} + + {% endif %}