We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f05ea15 commit 061f972Copy full SHA for 061f972
contracts/feature/Permissions.sol
@@ -19,6 +19,14 @@ contract Permissions is IPermissions {
19
return _hasRole[role][account];
20
}
21
22
+ function hasRoleWithSwitch(bytes32 role, address account) public view returns (bool) {
23
+ if (!_hasRole[role][address(0)]) {
24
+ return _hasRole[role][account];
25
+ }
26
+
27
+ return true;
28
29
30
function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
31
return _getRoleAdmin[role];
32
0 commit comments