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 %}