Checks if the caller is an admin.
(&self)
| 67 | |
| 68 | /// Checks if the caller is an admin. |
| 69 | pub fn is_admin(&self) -> bool { |
| 70 | self.is_self() || self.is_controller() |
| 71 | } |
| 72 | |
| 73 | /// Checks if the caller is the asset canister. |
| 74 | pub fn assert_is_admin(&self, scope: &str) -> Result<(), CanisterError> { |
no test coverage detected