MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / is_superuser

Method is_superuser

nodedb/src/control/security/auth_context.rs:307–309  ·  view source on GitHub ↗

Whether this context represents a superuser.

(&self)

Source from the content-addressed store, hash-verified

305
306 /// Whether this context represents a superuser.
307 pub fn is_superuser(&self) -> bool {
308 self.roles.iter().any(|r| r == "superuser")
309 }
310}
311
312/// Extract a string array from a JSON object by key.

Callers 5

inject_permission_treeFunction · 0.80
scoreMethod · 0.80
check_write_with_authMethod · 0.80
enforce_rls_on_deltaFunction · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected