RevokePermission
- Message Type: TransactionMessage
- Message Number: 1156
Inherited fields
| Name | Type | Size (bytes) | Description |
|---|
| MessageType | Integer (unsigned) | 2 | The unique identifier of this message.
|
| ClientId | Integer (unsigned) | 4 | The unique identifier of a session with the server, returned in a successful LoginReply message.
|
| RequestId | Integer (unsigned) | 4 | Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.
|
Fields
| Name | Type | Size (bytes) | Description |
|---|
| Permission | Foreign key to Permission | 8 | |
Permissions
Revoke Permission
{ permission: Permission.find(eq("User", "test-user")).Id }
Permission Checks
| PermissionAction | Table | Scope | Index |
|---|
| Administer | Account | All | |
| Administer | Permission | Firm | |
Test file: RevokePermission