Browse Source

Fix #3174 - Visualização dos dados de alteração de uma tramitação de Matéria Legislativa (#3215)

* Fix #3174 - Altera perm. visualização autor tram.

* Atualização sapl/templates/materia/tramitacao_detail.html

Co-authored-by: Edward <9326037+edwardoliveira@users.noreply.github.com>

* Retira cód. inutilizado

* Update sapl/materia/views.py

Co-authored-by: Edward <9326037+edwardoliveira@users.noreply.github.com>
pull/3218/head
João Rodrigues 5 years ago
committed by GitHub
parent
commit
56f43a6965
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      sapl/materia/views.py
  2. 2
      sapl/templates/materia/tramitacao_detail.html

2
sapl/materia/views.py

@ -1388,7 +1388,6 @@ class TramitacaoCrud(MasterDetailCrud):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['user'] = self.request.user
return context
@ -2826,6 +2825,7 @@ def get_pdf_docacessorios(request, pk):
% external_name)
return response
def configEtiquetaMateriaLegislativaCrud(request):
config = ConfigEtiquetaMateriaLegislativa.objects.last()
if request.method == "POST":

2
sapl/templates/materia/tramitacao_detail.html

@ -3,7 +3,7 @@
{% block detail_content %}
{{ block.super }}
{% if user.is_superuser %}
{% if 'materia.detail_tramitacao' in request.user.get_all_permissions %}
<div class="row">
{% if tramitacao.user %}
<div class="col-sm-4">

Loading…
Cancel
Save