Skip to main content

OzAccessManaged

Git Source

OzAccessManaged

A middleware extension that integrates OpenZeppelin's AccessManaged for access control

Implements AccessManager with OpenZeppelin's AccessManagedUpgradeable functionality

Methods

__OzAccessManaged_init

function __OzAccessManaged_init(
address authority
) internal onlyInitializing

Initializes the contract with an authority address

Can only be called during initialization

Parameters

NameTypeDescription
authorityaddressThe address to set as the access manager authority

_checkAccess

function _checkAccess() internal virtual override 

Checks if the caller has access through the OpenZeppelin AccessManaged

Delegates access check to OpenZeppelin's _checkCanCall function