summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-12-03 10:39:51 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-12-03 10:39:51 (GMT)
commit96f0fba3284dfda04cbdd55d2bee12394f2226ae (patch)
treeea6158ba94758de1990c5e10c9ede6cdcaf36bb5
parent9795851072ebc88457b6fc2e9001661163b3d973 (diff)
downloadwelco-96f0fba3284dfda04cbdd55d2bee12394f2226ae.zip
welco-96f0fba3284dfda04cbdd55d2bee12394f2226ae.tar.gz
welco-96f0fba3284dfda04cbdd55d2bee12394f2226ae.tar.bz2
alfortville: fix check for dga accessv0.9
-rw-r--r--welco/contrib/alfortville/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/welco/contrib/alfortville/views.py b/welco/contrib/alfortville/views.py
index f0b2496..e734bee 100644
--- a/welco/contrib/alfortville/views.py
+++ b/welco/contrib/alfortville/views.py
@@ -74,7 +74,7 @@ class Dga(HomeScreen):
def check_user_ok(self):
user_roles = [x.name for x in self.request.user.groups.all()]
- return any([x for x in user_roles if x['name'].startswith('DGA')])
+ return any([x for x in user_roles if x.startswith('DGA')])
dga = login_required(Dga.as_view())