Skip to content

Commit

Permalink
fix: remove guard for user canister list (#491)
Browse files Browse the repository at this point in the history
* remove guard for user canister list
  • Loading branch information
ravi-sawlani-yral authored Jan 9, 2025
1 parent 9c2e9e0 commit 38411ee
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use shared_utils::common::utils::permissions::is_reclaim_canister_id;

use crate::CANISTER_DATA;

#[query(guard = "is_reclaim_canister_id")]
fn get_user_canister_list() -> Vec<Principal> {
CANISTER_DATA.with(|canister_data_ref_cell| {
canister_data_ref_cell
Expand All @@ -16,7 +15,6 @@ fn get_user_canister_list() -> Vec<Principal> {
})
}

#[query(guard = "is_reclaim_canister_id")]
fn get_user_id_and_canister_list() -> Vec<(Principal, Principal)> {
CANISTER_DATA.with(|canister_data_ref_cell| {
canister_data_ref_cell
Expand All @@ -28,7 +26,6 @@ fn get_user_id_and_canister_list() -> Vec<(Principal, Principal)> {
})
}

#[query(guard = "is_reclaim_canister_id")]
fn get_user_canister_incl_avail_list() -> Vec<Principal> {
CANISTER_DATA.with(|canister_data_ref_cell| {
let mut canister_list = canister_data_ref_cell
Expand Down

0 comments on commit 38411ee

Please sign in to comment.