remove permission changeAddress for gov
This commit is contained in:
parent
f82f601cff
commit
58966e3106
@ -130,7 +130,7 @@ contract CECDistributor is ReentrancyGuard, Pausable, Ownable, Governable {
|
||||
require(infoMap[to].amount == 0, "CECDistributor: new addr is in whitelist");
|
||||
require(infoMap[from].amount > 0, "CECDistributor: not in whitelist");
|
||||
address _sender = _msgSender();
|
||||
require(_sender == owner() || _sender == gov || _sender == from, "CECDistributor: sender not allowed");
|
||||
require(_sender == owner() || _sender == from, "CECDistributor: sender not allowed");
|
||||
infoMap[to] = infoMap[from];
|
||||
delete infoMap[from];
|
||||
releasedMap[to] = releasedMap[from];
|
||||
|
Loading…
x
Reference in New Issue
Block a user