Skip to content
Snippets Groups Projects
Commit fbc964de authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Make sure that oauth users are staff

parent b24b9dfd
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment