Skip to content

Commit

Permalink
fix: Wrong condition for AC injection
Browse files Browse the repository at this point in the history
  • Loading branch information
donosonaumczuk committed Jan 6, 2025
1 parent edc6197 commit cae5980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/extensions/factories/LensFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ contract LensFactory {
returns (RuleChange memory)
{
bool found;
if (!rule.configurationChanges.configure) {
if (rule.configurationChanges.configure) {
for (uint256 i = 0; i < rule.configurationChanges.ruleParams.length; i++) {
if (rule.configurationChanges.ruleParams[i].key == PARAM__ACCESS_CONTROL) {
require(!found);
Expand Down

0 comments on commit cae5980

Please sign in to comment.