|
|
|
@ -489,8 +489,23 @@ class _TramitacaoAdministrativoViewSet(BusinessRulesNotImplementedMixin): |
|
|
|
return qs |
|
|
|
|
|
|
|
|
|
|
|
@customize(SessaoPlenaria) |
|
|
|
class _SessaoPlenariaViewSet: |
|
|
|
class _AnexadoViewSet( |
|
|
|
SaplSetViews['protocoloadm']['anexado'], |
|
|
|
BusinessRulesNotImplementedMixin): |
|
|
|
|
|
|
|
permission_classes = ( |
|
|
|
_DocumentoAdministrativoViewSet.DocumentoAdministrativoPermission, ) |
|
|
|
|
|
|
|
def get_queryset(self): |
|
|
|
qs = super().get_queryset() |
|
|
|
|
|
|
|
if self.request.user.is_anonymous(): |
|
|
|
qs = qs.exclude(documento__restrito=True) |
|
|
|
return qs |
|
|
|
|
|
|
|
|
|
|
|
class _SessaoPlenariaViewSet( |
|
|
|
SaplSetViews['sessao']['sessaoplenaria']): |
|
|
|
|
|
|
|
@action(detail=False) |
|
|
|
def years(self, request, *args, **kwargs): |
|
|
|
|