MCPcopy Create free account
hub / github.com/dfinity/orbit / remove_user

Method remove_user

core/control-panel/impl/src/services/user.rs:110–122  ·  view source on GitHub ↗
(
        &self,
        user_identity: &Principal,
        ctx: &CallContext,
    )

Source from the content-addressed store, hash-verified

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> {

Callers 2

delete_userMethod · 0.80
can_remove_userFunction · 0.80

Calls 4

assert_user_accessMethod · 0.80
get_user_by_identityMethod · 0.45
removeMethod · 0.45
to_keyMethod · 0.45

Tested by

no test coverage detected