alfortville: allow "Cabinet..." roles to access the DGA screen

This commit is contained in:
Frédéric Péters 2015-12-30 17:00:51 +01:00
parent 7de130d531
commit 3b69af98cf
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.startswith('DGA')])
return any([x for x in user_roles if x.startswith('DGA') or x.startswith('Cabinet')])
dga = login_required(Dga.as_view())