(
&self,
user_identity: &Principal,
ctx: &CallContext,
)
| 108 | } |
| 109 | |
| 110 | pub async fn remove_user( |
| 111 | &self, |
| 112 | user_identity: &Principal, |
| 113 | ctx: &CallContext, |
| 114 | ) -> ServiceResult<User> { |
| 115 | let user = self.get_user_by_identity(user_identity, ctx)?; |
| 116 | |
| 117 | self.assert_user_access(&user, ctx)?; |
| 118 | |
| 119 | self.user_repository.remove(&user.to_key()); |
| 120 | |
| 121 | Ok(user) |
| 122 | } |
| 123 | |
| 124 | /// Returns all deployed stations in the system. |
| 125 | pub fn get_all_deployed_stations(&self) -> BTreeSet<Principal> { |
no test coverage detected