MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / has_role

Method has_role

graphlite/src/session/models.rs:445–447  ·  view source on GitHub ↗

Check if user has a specific role

(&self, role_name: &str)

Source from the content-addressed store, hash-verified

443
444 /// Check if user has a specific role
445 pub fn has_role(&self, role_name: &str) -> bool {
446 self.roles.contains(&role_name.to_string())
447 }
448
449 /// Check if user can access a specific graph
450 pub fn can_access_graph(&self, graph_name: &str, action: &str) -> bool {

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected