Skip to content

Commit 52a988c

Browse files
author
Leo Arias
committed
Improve encapsulation on RBAC example
1 parent 51d79d4 commit 52a988c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/mocks/RBACMock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ contract RBACMock is RBACWithAdmin {
1010
modifier onlyAdminOrAdvisor()
1111
{
1212
require(
13-
hasRole(msg.sender, ROLE_ADMIN) ||
13+
isAdmin(msg.sender) ||
1414
hasRole(msg.sender, ROLE_ADVISOR)
1515
);
1616
_;

0 commit comments

Comments
 (0)