rite-of-moloch / RiteOfMoloch-v1.0

DAO onboarding and commitment staking tool
https://rom.wtf
2 stars 2 forks source link

Add ADMIN access controls on the frontend #131

Open daopunk opened 1 year ago

daopunk commented 1 year ago

Currently, anyone can call the Sacrifice, Slaughter, and other ADMIN protected functions, but nothing will happen if the msg.sender is not the ADMIN Solution: add ADMIN checks on access controlled buttons / functions

benedictvscriticus commented 1 year ago

the txn will be rejected

daopunk commented 1 year ago

there is currently no way to look this up on the contract

daopunk commented 1 year ago

check Hats hasRole