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

Name
Type
Description

[0]

address

The sender. Defaults to msg.sender.

onlyAccessControlRole

modifier onlyAccessControlRole(bytes32 role)

Ensures that the current sender is in the ROJIVerse role.

Parameters

Name
Type
Description

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

modifier 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

modifier 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

modifier 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

modifier 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

modifier 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?