Skip to content

Commit

Permalink
fix: add comment about rbacwithadmin being rather powerful (OpenZeppe…
Browse files Browse the repository at this point in the history
…lin#936)

* fix: add comment about rbacwithadmin being rather powerful
* fix: move RBACWithAdmin to examples
  • Loading branch information
shrugs authored Jun 4, 2018
1 parent 32ec8b5 commit 2637bd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
pragma solidity ^0.4.23;

import "./RBAC.sol";
import "../ownership/rbac/RBAC.sol";


/**
* @title RBACWithAdmin
* @author Matt Condon (@Shrugs)
* @dev It's recommended that you define constants in the contract,
* @dev like ROLE_ADMIN below, to avoid typos.
* @dev
* @dev NOTE: RBACWithAdmin is probably too expansive and powerful for your
* @dev application; an admin is actually able to change any address to any role
* @dev which is a very large API surface. It's recommended that you follow a strategy
* @dev of strictly defining the abilities of your roles
* @dev and the API-surface of your contract.
* @dev This is just an example for example's sake.
*/
contract RBACWithAdmin is RBAC {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/RBACMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.4.23;

import "../ownership/rbac/RBACWithAdmin.sol";
import "../examples/RBACWithAdmin.sol";


contract RBACMock is RBACWithAdmin {
Expand Down

0 comments on commit 2637bd8

Please sign in to comment.