Skip to content

Commit

Permalink
Better way of checking that there are no other proposals logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Sep 1, 2023
1 parent b391513 commit 3a5a5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxcube3/core/components/user/usermanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def _login(self, login_id: str, password: str):
if (
(not inhouse)
and non_inhouse_active_users
and (login_id != self.get_operator().selected_proposal)
and (login_id not in [p.split("-")[0] for p in non_inhouse_active_users])
and HWR.beamline.lims.loginType.lower() != "user"
):
raise Exception("Another user is already logged in")
Expand Down

0 comments on commit 3a5a5ca

Please sign in to comment.