#
LibACL
#
Functions
#
_assignRole
function _assignRole(bytes32 _objectId, bytes32 _contextId, bytes32 _roleId) internal;
#
_unassignRole
function _unassignRole(bytes32 _objectId, bytes32 _contextId) internal;
#
_isInGroup
_isInGroup no longer falls back to check the _objectId's role in the system context
function _isInGroup(bytes32 _objectId, bytes32 _contextId, bytes32 _groupId) internal view returns (bool ret);
#
_isParentInGroup
function _isParentInGroup(bytes32 _objectId, bytes32 _contextId, bytes32 _groupId) internal view returns (bool);
#
_canAssign
Checks if assigner has the authority to assign object to a role in given context
Any object ID can be a context, system is a special context with highest priority
function _canAssign(bytes32 _assignerId, bytes32 _objectId, bytes32 _contextId, bytes32 _roleId)
internal
view
returns (bool);
Parameters
Returns
#
_hasGroupPrivilege
function _hasGroupPrivilege(bytes32 _userId, bytes32 _contextId, bytes32 _groupId) internal view returns (bool);
#
_getRoleInContext
function _getRoleInContext(bytes32 _objectId, bytes32 _contextId) internal view returns (bytes32);
#
_isRoleInGroup
function _isRoleInGroup(string memory role, string memory group) internal view returns (bool);
#
_canGroupAssignRole
function _canGroupAssignRole(string memory role, string memory group) internal view returns (bool);
#
_updateRoleAssigner
function _updateRoleAssigner(string memory _role, string memory _assignerGroup) internal;
#
_updateRoleGroup
function _updateRoleGroup(string memory _role, string memory _group, bool _roleInGroup) internal;
#
Events
#
RoleUpdated
Emitted when a role gets updated. Empty roleId is assigned upon role removal
event RoleUpdated(bytes32 indexed objectId, bytes32 contextId, bytes32 assignedRoleId, string functionName);
Parameters
#
RoleGroupUpdated
Emitted when a role group gets updated.
event RoleGroupUpdated(string role, string group, bool roleInGroup);
Parameters
#
RoleCanAssignUpdated
Emitted when a role assigners get updated.
event RoleCanAssignUpdated(string role, string group);
Parameters