Skip to content

Commit

Permalink
Selecting proposal when changing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed May 2, 2018
1 parent 62d710c commit ad5af91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mxcube3/routes/loginutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,17 @@ def logged_in_users(exclude_inhouse=False):


def set_operator(sid):
from mxcube3.routes.limsutils import select_proposal

# Clear previous operator
for user in users().itervalues():
user["operator"] = False
user["requestsControl"] = False

get_user_by_sid(sid)["operator"] = True
user = get_user_by_sid(sid)
user["operator"] = True

select_proposal(user["loginID"])

def users():
return mxcube.USERS
Expand Down

0 comments on commit ad5af91

Please sign in to comment.