Skip to content

Commit

Permalink
fix: Add in access control on SetAccessController
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Oct 7, 2022
1 parent 29382fb commit cea1b45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/programs/ocr2/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ pub struct Transmit<'info> {
pub struct SetAccessController<'info> {
#[account(mut)]
pub state: AccountLoader<'info, State>,
#[account(address = state.load()?.config.owner @ ErrorCode::Unauthorized)]
pub authority: Signer<'info>,
pub access_controller: AccountLoader<'info, AccessController>,
}
Expand Down

0 comments on commit cea1b45

Please sign in to comment.