diff --git a/csaxs_bec/bec_ipython_client/plugins/omny/omny.py b/csaxs_bec/bec_ipython_client/plugins/omny/omny.py index a11c7bce..0ff2437a 100644 --- a/csaxs_bec/bec_ipython_client/plugins/omny/omny.py +++ b/csaxs_bec/bec_ipython_client/plugins/omny/omny.py @@ -44,9 +44,11 @@ class OMNYError(Exception): # BEC accounts (bec.active_account, e.g. "e12345") allowed to select advanced tomo # modes (golden ratio, 4/8 sub-tomogram) in OMNY.tomo_parameters(). Regular users only -# ever see "1: 2 equally spaced sub-tomograms". Populate with real beamline-staff -# account codes -- left empty until populated, so nobody sees the advanced options yet. -_SUPERUSER_ACCOUNTS: frozenset[str] = frozenset({}) +# ever see "1: 2 equally spaced sub-tomograms". active_account is a Redis-backed +# pgroup value, set explicitly via `bec-set-account ` -- it is NOT derived +# from the OS login, so testing as this account requires running +# `bec-set-account gac-x01dc` first (or wiring pgroup "gac-x01dc" some other way). +_SUPERUSER_ACCOUNTS: frozenset[str] = frozenset({"gac-x01dc"}) class OMNYInitStagesMixin: