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

Method is_internal_admin

src/sql/src/session/user.rs:120–126  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

118 }
119
120 pub fn is_internal_admin(&self) -> bool {
121 self.internal_metadata
122 .as_ref()
123 .map(|metadata| metadata.superuser)
124 .clone()
125 .unwrap_or(false)
126 }
127
128 /// Returns whether this user is a superuser.
129 pub fn is_superuser(&self) -> bool {

Callers 1

kindMethod · 0.80

Calls 3

cloneMethod · 0.45
mapMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected