Merge pull request #120 from 67P/bugfix/fix-core-permissions

Fix canPerform method
This commit was merged in pull request #120.
This commit is contained in:
2019-04-25 21:17:37 +01:00
committed by GitHub

View File

@@ -144,7 +144,7 @@ contract Contributor is AragonApp {
exists = c.exists; exists = c.exists;
} }
function canPerform(address _who, address _where, bytes32 _what/*, uint256[] memory _how*/) public returns (bool) { function canPerform(address _who, address _where, bytes32 _what, uint256[] memory _how) public returns (bool) {
address sender = _who; address sender = _who;
if (sender == address(-1)) { if (sender == address(-1)) {
sender = tx.origin; sender = tx.origin;