Ernesto García a34dd8bb1b Add `solidity` language to missing code snippets (#3992) 2 years ago
..
AccessControl.sol a34dd8bb1b Add `solidity` language to missing code snippets (#3992) 2 years ago
AccessControlCrossChain.sol a035b235b4 Release v4.6 (#3358) 3 years ago
AccessControlEnumerable.sol afb20119b3 Release v4.5 3 years ago
IAccessControl.sol 6bd6b76d11 4.4.1 3 years ago
IAccessControlEnumerable.sol 6bd6b76d11 4.4.1 3 years ago
Ownable.sol 3dac7bbed7 Merge v4.7 back into master (#3516) 3 years ago
Ownable2Step.sol c9bc4f8203 Make `Ownable2Step.acceptOwnership` virtual (#3960) 2 years ago
README.adoc 24d1bb668a Add Ownable2Step to the docs (#3836) 2 years ago

README.adoc

= 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}}