Skip to content

Commit

Permalink
Enforce onlyOwner modifier on allowWorkflow and disallowWorkflow func…
Browse files Browse the repository at this point in the history
…tions in AccessRegistry.sol
  • Loading branch information
ylv-io committed Jan 29, 2024
1 parent ccf1439 commit 1dc6623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/access/AccessRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ contract AccessRegistry is Initializable, UUPSUpgradeable, OwnableUpgradeable, I
/* ============ State Change ============ */

/// @inheritdoc IAccessRegistry
function disallowWorkflow(address workflow) external {
function disallowWorkflow(address workflow) external onlyOwner {
_workflows[workflow] = false;
emit WorkflowStatusChanged(workflow, false);

Check warning on line 123 in src/access/AccessRegistry.sol

View check run for this annotation

Codecov / codecov/patch

src/access/AccessRegistry.sol#L122-L123

Added lines #L122 - L123 were not covered by tests
}

/// @inheritdoc IAccessRegistry
function allowWorkflow(address workflow) external {
function allowWorkflow(address workflow) external onlyOwner {
_workflows[workflow] = true;
emit WorkflowStatusChanged(workflow, true);
}
Expand Down

0 comments on commit 1dc6623

Please sign in to comment.