Skip to content

Commit

Permalink
docs: improved comment
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Sep 21, 2023
1 parent 60f8d72 commit 2e9f55d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/contracts/src/core/permission/PermissionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ abstract contract PermissionManager is Initializable {
});
}

// If this permission is not set, check if there is a generic caller condition.
// If this permission is not set, continue.
}

// Generic caller (`_who: ANY_ADDR`) condition check
Expand All @@ -263,7 +263,7 @@ abstract contract PermissionManager is Initializable {
_data: _data
});
}
// If no generic caller condition is set, check if there is a generic target condition.
// If this permission is not set, continue.
}

// Generic target (`_where: ANY_ADDR`) condition check
Expand All @@ -284,9 +284,10 @@ abstract contract PermissionManager is Initializable {
_data: _data
});
}
// If this permission is not set, continue.
}

// No specific or generic permission (condition) applies so we return `false`.
// No specific or generic permission applies to the `_who`, `_where`, `_permissionId`, so we return `false`.
return false;
}

Expand Down

0 comments on commit 2e9f55d

Please sign in to comment.