Skip to content
Snippets Groups Projects
Commit 272c3b85 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Require active user for assignment to control room groups

parent 41f74da4
No related branches found
No related tags found
No related merge requests found
......@@ -139,8 +139,8 @@ class ControlRoomMiddleware(object):
# Code to be executed for requests ------------------------------------
# Make sure user is authenticated and in LVC group --------------------
if not (request.user.is_authenticated and request.user.groups.filter(
name=settings.LVC_GROUP).exists()):
if not (request.user.is_authenticated and request.user.is_active and
request.user.groups.filter(name=settings.LVC_GROUP).exists()):
return self.get_response(request)
# Process request -----------------------------------------------------
......
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