We need to use tx.origin to get the actual sender of the transaction (not an intermediary contract that talks to the other contract)
This commit is contained in:
parent
0756569dc7
commit
15a08fdaec
@ -49,7 +49,7 @@ contract Contribution is Initializable {
|
||||
event ContributionVetoed(uint32 id, address vetoedByAccount);
|
||||
|
||||
modifier onlyCore {
|
||||
require(contributorContract.addressIsCore(msg.sender), "Core only");
|
||||
require(contributorContract.addressIsCore(tx.origin), "Core only");
|
||||
_;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ contract Contributor is Initializable {
|
||||
event ContributorAdded(uint32 id, address account);
|
||||
|
||||
modifier onlyCore {
|
||||
require(addressIsCore(msg.sender), "Core only");
|
||||
require(addressIsCore(tx.origin), "Core only");
|
||||
_;
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ contract Reimbursement is Initializable {
|
||||
}
|
||||
|
||||
modifier onlyCore {
|
||||
require(contributorContract.addressIsCore(msg.sender), "Core only");
|
||||
require(contributorContract.addressIsCore(tx.origin), "Core only");
|
||||
_;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user