Francisco Giordano 99a4cfca17 Replace error strings with custom errors (#4261) пре 2 година
..
AccessControl.sol 99a4cfca17 Replace error strings with custom errors (#4261) пре 2 година
AccessControlDefaultAdminRules.sol 99a4cfca17 Replace error strings with custom errors (#4261) пре 2 година
AccessControlEnumerable.sol 7bb5592ad5 Bump minimum pragma version to `0.8.19` (#4288) пре 2 година
IAccessControl.sol 99a4cfca17 Replace error strings with custom errors (#4261) пре 2 година
IAccessControlDefaultAdminRules.sol 99a4cfca17 Replace error strings with custom errors (#4261) пре 2 година
IAccessControlEnumerable.sol 7bb5592ad5 Bump minimum pragma version to `0.8.19` (#4288) пре 2 година
Ownable.sol 99a4cfca17 Replace error strings with custom errors (#4261) пре 2 година
Ownable2Step.sol 99a4cfca17 Replace error strings with custom errors (#4261) пре 2 година
README.adoc 0f10efe232 Remove code in preparation for v5.0 (#4258) пре 2 година

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

{{IAccessControlEnumerable}}

{{AccessControlEnumerable}}

{{AccessControlDefaultAdminRules}}