UsingAccessControl
UsingAccessControl
This contract provides modifiers for access control. Inherit from it and use the appropriate modifier.
_msgSenderROJI
function _msgSenderROJI() internal view virtual returns (address)Returns the sender. This can be overridden if necessary for meta transactions.
Return Values
[0]
address
The sender. Defaults to msg.sender.
onlyAccessControlRole
modifier onlyAccessControlRole(bytes32 role)Ensures that the current sender is in the ROJIVerse role.
Parameters
role
bytes32
The role to check for. This checks against the ROJIVerse access control. The sender is retrieved through _msgSenderROJI(), which can be overridden in decendent contracts.
onlyAccessControlAdmin
modifier onlyAccessControlAdmin()Ensures that the current sender is in the ROLE_ACCESS_CONTROL_ADMIN role. This checks against the contracts access control control. The sender is retrieved through _msgSenderROJI(), which can be overridden in decendent contracts.
onlyAccessControlFinance
Ensures that the current sender is in the ROLE_FINANCE role. This checks against the contracts access control control. The sender is retrieved through _msgSenderROJI(), which can be overridden in decendent contracts.
onlyAccessControlOperations
Ensures that the current sender is in the ROLE_OPERATIONS role. This checks against the contracts access control control. The sender is retrieved through _msgSenderROJI(), which can be overridden in decendent contracts.
onlyAccessControlMetadataUpdate
Ensures that the current sender is in the ROLE_METADATA_UPDATE role. This checks against the contracts access control control. The sender is retrieved through _msgSenderROJI(), which can be overridden in decendent contracts.
onlyAccessControlAdminMinting
Ensures that the current sender is in the ROLE_ADMIN_MINTING role. This checks against the contracts access control control. The sender is retrieved through _msgSenderROJI(), which can be overridden in decendent contracts.
onlyAccessControlAdminBurning
Ensures that the current sender is in the ROLE_ADMIN_BURNING role. This checks against the contracts access control control. The sender is retrieved through _msgSenderROJI(), which can be overridden in decendent contracts.
Was this helpful?