Skip to content

Commit

Permalink
chore: remove permission control for the get_delegators API in the …
Browse files Browse the repository at this point in the history
…`ic_name_identity` canister
  • Loading branch information
zensh committed Dec 30, 2024
1 parent d97d7a9 commit 8c838b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ic_name_identity/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ fn get_principal(name: String) -> Result<Principal, String> {
fn get_delegators(name: String) -> Result<Vec<Delegator>, String> {
let name = name.to_ascii_lowercase();
let res = store::state::get_delegations(&name).ok_or_else(|| "name not found".to_string())?;
if !res.has_permission(&ic_cdk::caller(), -1) {
return Err("caller is not authorized".to_string());
}

Ok(res.delegators())
}
Expand Down

0 comments on commit 8c838b2

Please sign in to comment.