From 336cae3cf5309ce0b094658e3389e5f8bf69dbf3 Mon Sep 17 00:00:00 2001 From: x01dc Date: Tue, 1 Sep 2026 14:31:00 +0200 Subject: [PATCH] feat(omny): grant gac-x01dc superuser access to advanced tomo modes For testing tomorrow. Note: bec.active_account is a Redis-backed pgroup value set via `bec-set-account `, not derived from the OS login -- testing under this account requires running `bec-set-account gac-x01dc` (or otherwise setting the pgroup to that value) before it takes effect. --- csaxs_bec/bec_ipython_client/plugins/omny/omny.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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: