Skip to content

Commit

Permalink
Use 'require_admin_or_controller' guard for 'update_provider'
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Sep 21, 2023
1 parent 8e5a111 commit ac2820e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ fn unregister_provider(provider_id: u64) -> bool {
do_unregister_provider(provider_id)
}

#[update(guard = "require_register_provider")]
// #[update(guard = "require_register_provider")]
#[update(guard = "require_admin_or_controller")]
#[candid_method]
fn update_provider(provider: UpdateProvider) {
do_update_provider(provider)
Expand Down

0 comments on commit ac2820e

Please sign in to comment.