aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-05-18 17:32:40 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-05-18 17:32:40 +0200
commitf8677d424f5bacfaf7e6dcc777f375b4811cfda0 (patch)
treea6f1d57b9ea2bf0e9824b61b6a45e923d5cdd6c5
parentfix (again) approve user helper text (diff)
downloadscout-subs-f8677d424f5bacfaf7e6dcc777f375b4811cfda0.tar.gz
scout-subs-f8677d424f5bacfaf7e6dcc777f375b4811cfda0.zip
fix bug/typo on data request
-rw-r--r--server/views.py2
-rw-r--r--version.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/views.py b/server/views.py
index c91db1e..928eac1 100644
--- a/server/views.py
+++ b/server/views.py
@@ -1478,7 +1478,7 @@ def data_request(request):
context["data"] = data
elif request.POST["request"] == "email_non_staff":
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)
+ users_email = User.objects.filter(groups__name=parent_group, user_permissions=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 b2f1f13..dfc5e21 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.5
-rev=18
+rev=19