diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 4f9bd3d0e..10c533c78 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -100,6 +100,12 @@ class DependenteCrud(MasterDetailCrud): class DeleteView(PermissionRequiredMixin, MasterDetailCrud.DeleteView): permission_required = permissoes_parlamentares() + class ListView(PermissionRequiredMixin, MasterDetailCrud.ListView): + permission_required = permissoes_parlamentares() + + class DetailView(PermissionRequiredMixin, MasterDetailCrud.DetailView): + permission_required = permissoes_parlamentares() + class MandatoCrud(MasterDetailCrud): model = Mandato diff --git a/sapl/templates/parlamentares/parlamentar_perfil_publico.html b/sapl/templates/parlamentares/parlamentar_perfil_publico.html index b60c3e0d5..73fae2a38 100644 --- a/sapl/templates/parlamentares/parlamentar_perfil_publico.html +++ b/sapl/templates/parlamentares/parlamentar_perfil_publico.html @@ -12,7 +12,8 @@ {% block detail_content %}
-