mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 08:09:27 +00:00
We need to have open fga enabled to support non-admin roles. However currently the create user api allows creating non-admin users even when ofga is not enabled. Those are treated as admin users, which causes further confusion. This PR adds a check so that non-admin roles are blocked at creation if ofga is not enabled. --------- Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>