diff --git a/opentech/apply/users/pipeline.py b/opentech/apply/users/pipeline.py index bab1c3ec216ca66476e8afde30c7955e3fe27c7a..3df8f198ecf4dc927d1539e95bff4d7672d3b6c2 100644 --- a/opentech/apply/users/pipeline.py +++ b/opentech/apply/users/pipeline.py @@ -9,3 +9,5 @@ def make_otf_staff(backend, user, response, *args, **kwargs): if email_domain in settings.STAFF_EMAIL_DOMAINS: staff_group = Group.objects.get(name=STAFF_GROUP_NAME) user.groups.add(staff_group) + # Required in order to allow access to django admin, no other functional use + user.is_staff = True