Returns the kind of user this is.
(&self)
| 142 | |
| 143 | /// Returns the kind of user this is. |
| 144 | pub fn kind(&self) -> UserKind { |
| 145 | if self.is_external_admin() || self.is_system_user() || self.is_internal_admin() { |
| 146 | UserKind::Superuser |
| 147 | } else { |
| 148 | UserKind::Regular |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | #[derive(Debug, Copy, Clone)] |
no test coverage detected