alfortville: fix check for dga access

This commit is contained in:
Frédéric Péters 2015-12-03 11:39:51 +01:00
parent 9795851072
commit 96f0fba328
1 changed files with 1 additions and 1 deletions

View File

@ -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())