IRole Methods |
The IRole type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AddFunctionRight | Add a function right to the active list. Use the function right id or the function right key-name (like 'admin-users') |
![]() ![]() | CancelChanges | Cancel reverts the changes to the role |
![]() ![]() | Delete | Delete the role. Marks the role as deleted and removes all data and function rights from the role. Users having the deleted role must be assigned a new role. Will throw an error if you do not have user admin rights. |
![]() ![]() | HasFunctionRight | Returns true if the role has the given function right |
![]() ![]() | IsRelationshipCovered | Returns true if the role defines rights for the given type of relationship. The relationships vary according to role type. |
![]() ![]() | IsTableCovered | Returns true if the role defines rights for the given table. The list of tables is the same for all role types. |
![]() ![]() | RemoveFunctionRight | Remove a function right from the active list. (Refresh the list of functionrights in the role before saving.) |
![]() ![]() | Save | Save stores the changes to the role in the database. Will throw an error if you do not have user admin rights. |