Hadrien Croubois 5ae630684a Add a bool return to _grantRole and _revokeRole (#4241) 2 gadi atpakaļ
..
extensions 5ae630684a Add a bool return to _grantRole and _revokeRole (#4241) 2 gadi atpakaļ
AccessControl.sol 5ae630684a Add a bool return to _grantRole and _revokeRole (#4241) 2 gadi atpakaļ
IAccessControl.sol 00cbf5a236 Update pragma to 0.8.20 (#4489) 2 gadi atpakaļ
Ownable.sol 00cbf5a236 Update pragma to 0.8.20 (#4489) 2 gadi atpakaļ
Ownable2Step.sol 00cbf5a236 Update pragma to 0.8.20 (#4489) 2 gadi atpakaļ
README.adoc 9cf873ea14 Change access folder structure (#4359) 2 gadi atpakaļ

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.

== Core

{{Ownable}}

{{Ownable2Step}}

{{IAccessControl}}

{{AccessControl}}

== Extensions

{{IAccessControlEnumerable}}

{{AccessControlEnumerable}}

{{IAccessControlDefaultAdminRules}}

{{AccessControlDefaultAdminRules}}