Check if user has a specific role
(&self, role_name: &str)
| 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 { |