Files
openzeppelin-contracts/contracts/access
Benjamin fad1172e63 Add Ownable2Step to the docs (#3836)
Co-authored-by: Francisco <fg@frang.io>
(cherry picked from commit 24d1bb668a)
2022-12-01 10:35:17 -03:00
..
2022-11-08 11:29:29 -03:00
2022-02-09 18:16:53 -03:00
2021-12-14 13:14:39 -03:00
2021-12-14 13:14:39 -03:00
2022-11-08 11:29:29 -03:00

= Access Control

[.readme-notice]
NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/access

This directory provides ways to restrict who can access the functions of a contract or when they can do it.

- {AccessControl} provides a general role based access control mechanism. Multiple hierarchical roles can be created and assigned each to multiple accounts.
- {Ownable} is a simpler mechanism with a single owner "role" that can be assigned to a single account. This simpler mechanism can be useful for quick tests but projects with production concerns are likely to outgrow it.

== Authorization

{{Ownable}}

{{Ownable2Step}}

{{IAccessControl}}

{{AccessControl}}

{{AccessControlCrossChain}}

{{IAccessControlEnumerable}}

{{AccessControlEnumerable}}