Browse Source

fix: move RBAC to //access (#1114)

Matt Condon 7 năm trước cách đây
mục cha
commit
afe9113b18

+ 1 - 1
contracts/access/SignatureBouncer.sol

@@ -1,7 +1,7 @@
 pragma solidity ^0.4.24;
 
 import "../ownership/Ownable.sol";
-import "../ownership/rbac/RBAC.sol";
+import "../access/rbac/RBAC.sol";
 import "../ECRecovery.sol";
 
 

+ 1 - 1
contracts/access/Whitelist.sol

@@ -2,7 +2,7 @@ pragma solidity ^0.4.24;
 
 
 import "../ownership/Ownable.sol";
-import "../ownership/rbac/RBAC.sol";
+import "../access/rbac/RBAC.sol";
 
 
 /**

+ 0 - 0
contracts/ownership/rbac/RBAC.sol → contracts/access/rbac/RBAC.sol


+ 0 - 0
contracts/ownership/rbac/Roles.sol → contracts/access/rbac/Roles.sol


+ 1 - 1
contracts/examples/RBACWithAdmin.sol

@@ -1,6 +1,6 @@
 pragma solidity ^0.4.24;
 
-import "../ownership/rbac/RBAC.sol";
+import "../access/rbac/RBAC.sol";
 
 
 /**

+ 4 - 4
contracts/ownership/Superuser.sol

@@ -2,14 +2,14 @@ pragma solidity ^0.4.24;
 
 
 import "./Ownable.sol";
-import "./rbac/RBAC.sol";
+import "../access/rbac/RBAC.sol";
 
 
 /**
  * @title Superuser
- * @dev The Superuser contract defines a single superuser who can transfer the ownership 
- * of a contract to a new address, even if he is not the owner. 
- * A superuser can transfer his role to a new address. 
+ * @dev The Superuser contract defines a single superuser who can transfer the ownership
+ * of a contract to a new address, even if he is not the owner.
+ * A superuser can transfer his role to a new address.
  */
 contract Superuser is Ownable, RBAC {
   string public constant ROLE_SUPERUSER = "superuser";

+ 1 - 1
contracts/token/ERC20/RBACMintableToken.sol

@@ -1,7 +1,7 @@
 pragma solidity ^0.4.24;
 
 import "./MintableToken.sol";
-import "../../ownership/rbac/RBAC.sol";
+import "../../access/rbac/RBAC.sol";
 
 
 /**