|
|
@@ -109,7 +109,7 @@ def welcome(request,utente=None):
|
|
|
tmp = list()
|
|
|
if not "DOCUMENTO.MOSTRA.PRIVATO" in data['permesso']:
|
|
|
for ed in ElencoDocumenti:
|
|
|
- if "emo_" not in ed.documento.lower():
|
|
|
+ if "emo_" not in ed.documento.lower() and not ed.privato:
|
|
|
tmp.append(ed)
|
|
|
else:
|
|
|
tmp = ElencoDocumenti
|
|
|
@@ -449,7 +449,7 @@ def azienda(request,utente=None):
|
|
|
tmp = list()
|
|
|
if not "DOCUMENTO.MOSTRA.PRIVATO" in data['permesso']:
|
|
|
for ed in ElencoDocumenti:
|
|
|
- if "emo_" not in ed.documento.lower():
|
|
|
+ if "emo_" not in ed.documento.lower() and not ed.privato:
|
|
|
tmp.append(ed)
|
|
|
else:
|
|
|
tmp = ElencoDocumenti
|
|
|
@@ -578,6 +578,7 @@ def azienda(request,utente=None):
|
|
|
comunicazione = filecaricati.cleaned_data.get('comunicazione')
|
|
|
ignoraAzienda = filecaricati.cleaned_data.get('ignoraAzienda')
|
|
|
ignoraSede = filecaricati.cleaned_data.get('ignoraSede')
|
|
|
+ privato = filecaricati.cleaned_data.get('privato')
|
|
|
|
|
|
if 'allegati' in filecaricati.cleaned_data and filecaricati.cleaned_data.get('allegati'):
|
|
|
print('presenti documenti da allegare')
|