Skip to content

Commit

Permalink
Merge branch 'master' into team-update
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjelfs authored Jul 23, 2024
2 parents 3908cce + 5be86a5 commit ec87098
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ fn accept_if_valid(state: &RuntimeState) {
}

let is_valid = match method_name.as_str() {
"create_canister"
"claim_daily_chit"
| "create_canister"
| "delete_user"
| "mark_as_online"
| "mark_suspected_bot"
| "pay_for_diamond_membership"
| "set_display_name"
| "set_moderation_flags"
| "set_username"
| "mark_suspected_bot"
| "update_diamond_membership_subscription"
| "claim_daily_chit" => {
| "submit_proof_of_unique_personhood"
| "update_diamond_membership_subscription" => {
let caller = state.env.caller();
let is_user = state.data.users.get_by_principal(&caller).is_some();
is_user
Expand Down

0 comments on commit ec87098

Please sign in to comment.