pub async fn validate_connection(
client: &Client,
emulator: bool,
) -> Result<MzDeployRole, CliError>Expand description
Validate that the current role has a valid mz-deploy role membership or is a superuser. Returns the detected role on success.
When RBAC is disabled — or the profile sets emulator = true — the role
machinery is meaningless: setup never created the materialize_* roles,
and every role can already do everything, so this short-circuits to
MzDeployRole::Superuser.