Last updated: December 19, 2024
SCSTG-TEST-0005: Test Timed Permissions
Ensure that access controls are implemented correctly to determine who can use certain functions, and avoid unauthorized changes or withdrawals.
- Ensure that functions requiring specific roles or permissions are restricted properly using onlyOwner or role-based checks.
modifier onlyOwner() {
require(msg.sender == owner, "Caller is not the owner");
_;
}
function withdraw() external onlyOwner {
// Only the owner can withdraw
}