Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/JBOwnableOverrides.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,20 @@ abstract contract JBOwnableOverrides is Context, IJBOwnable, IJBOperatable {
/**
@notice
Only allows callers that have received permission from the projectOwner for this project.


@param _domain The domain namespace to look for an operator within.
@param _permissionIndex The index of the permission to check for.
*/
modifier requirePermissionFromOwner(
uint256 _domain,
uint256 _permissionIndex
) {
JBOwner memory _ownerData = jbOwner;

address _owner = _ownerData.projectId == 0 ?
_ownerData.owner : projects.ownerOf(_ownerData.projectId);

_requirePermission(_owner, _ownerData.projectId, _permissionIndex);
_requirePermission(_owner, _domain, _permissionIndex);
_;
}

Expand Down