MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / is_external_admin

Method is_external_admin

src/sql/src/session/user.rs:112–118  ·  view source on GitHub ↗

Returns whether this user is an admin in an external system.

(&self)

Source from the content-addressed store, hash-verified

110
111 /// Returns whether this user is an admin in an external system.
112 pub fn is_external_admin(&self) -> bool {
113 self.external_metadata
114 .as_ref()
115 .map(|metadata| metadata.admin)
116 .clone()
117 .unwrap_or(false)
118 }
119
120 pub fn is_internal_admin(&self) -> bool {
121 self.internal_metadata

Callers 2

fromMethod · 0.80
kindMethod · 0.80

Calls 3

cloneMethod · 0.45
mapMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected