Whether this context represents a superuser.
(&self)
| 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. |
no test coverage detected