Inoltre accetto e prendo nota della seguente clausula aggiuntiva:
- {{doc.document_type.custom_message_text}}
+ {{doc.document_type.custom_message_text | linebreaksbr}}
{% endif %}
Inoltre accetto e prendo nota della seguente clausula aggiuntiva:
- {{doc.document_type.custom_message_text}}
+ {{doc.document_type.custom_message_text | linebreaksbr}}
{% endif %}
diff --git a/version.txt b/version.txt
index a897277..df9103d 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.4
-rev=26
+rev=27
--
cgit v1.2.1
From 99915b9316036ac8ae13fe8d692080b460c0ad55 Mon Sep 17 00:00:00 2001
From: Andrea Lepori
Date: Tue, 11 Jan 2022 15:57:39 +0100
Subject: fix user filter not displaing properly
---
server/templates/server/doc_list.html | 2 +-
version.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html
index 736fdd4..5b898ec 100644
--- a/server/templates/server/doc_list.html
+++ b/server/templates/server/doc_list.html
@@ -508,7 +508,7 @@ $('#chips_owner').chips({
autocompleteOptions: {
data: {
{% for user in users %}
- '{{user.username}} ({{user.first_name}} {{user.last_name}})': null,
+ '{{user.user__username}} ({{user.user__first_name}} {{user.user__last_name}})': null,
{% endfor %}
},
limit: Infinity,
diff --git a/version.txt b/version.txt
index df9103d..b58ad09 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.4
-rev=27
+rev=28
--
cgit v1.2.1
From 9f1ae7f9b3fab995748ead2549b77d4d0605521f Mon Sep 17 00:00:00 2001
From: Andrea Lepori
Date: Tue, 11 Jan 2022 16:01:54 +0100
Subject: hide user from data request if not approved
---
server/views.py | 6 ++++--
version.txt | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/server/views.py b/server/views.py
index 0e032f0..c91db1e 100644
--- a/server/views.py
+++ b/server/views.py
@@ -1472,11 +1472,13 @@ def data_request(request):
if "request" not in request.POST.keys():
context["error"] = "Selezionare una richesta"
elif request.POST["request"] == "email_all":
- users_email = User.objects.filter(groups__name=parent_group).values_list("email", flat=True)
+ perm = Permission.objects.get(codename="approved")
+ users_email = User.objects.filter(groups__name=parent_group, user_permissions=perm).values_list("email", flat=True)
data = ", ".join(users_email)
context["data"] = data
elif request.POST["request"] == "email_non_staff":
- users_email = User.objects.filter(groups__name=parent_group).exclude(groups__name="capi").values_list("email", flat=True)
+ perm = Permission.objects.get(codename="approved")
+ users_email = User.objects.filter(groups__name=parent_group, user_permission=perm).exclude(groups__name="capi").values_list("email", flat=True)
data = ", ".join(users_email)
context["data"] = data
elif request.POST["request"] == "data_user":
diff --git a/version.txt b/version.txt
index b58ad09..38b0958 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.4
-rev=28
+rev=29
--
cgit v1.2.1
From f6f9daa8100fa59421692e2afbbc44f4d5753d66 Mon Sep 17 00:00:00 2001
From: Andrea Lepori
Date: Fri, 21 Jan 2022 17:58:27 +0100
Subject: edit terms + change log for new version
---
CHANGELOG.md | 8 ++++++++
accounts/templates/accounts/terms.html | 6 ++++--
templates/registration/base_client.html | 4 +++-
version.txt | 4 ++--
4 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eae250a..4a59998 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,11 @@
+# 0.5 (21 jan 2022)
+- Bug: users of other groups also visible in user list
+- Show warning if some account fields are empty
+- Implementation of oauth login using midata/hitobito
+- New settings tab in profile page
+- Password change
+- Multiple choice for custom parameters
+
# 0.4 (23 set 2021)
- Bug: emergency document list visible also to non "capi"
- Overall performance improvements leveraging SQL queries
diff --git a/accounts/templates/accounts/terms.html b/accounts/templates/accounts/terms.html
index 8b4443b..e7de26b 100644
--- a/accounts/templates/accounts/terms.html
+++ b/accounts/templates/accounts/terms.html
@@ -12,9 +12,11 @@
Termini e condizioni
+
Trattamento dei dati
- Creando un account accetti e comprendi i seguenti termini:
- Tutti i dati inseriti all'interno del sistema verranno condivisi con la persona a capo del gruppo di cui fai parte.
+ Tutti i dati inseriti verranno trattati in maniera confidenziale
+ e condivisi con i responsabili della sezione scout. I quali
+ li useranno per scopi organizzativi e non li condivideranno con terze parti.