To get and store information about data such as privileges, privileges on objects, rights, etc.:
Get a list of all operations from a dictionary
Specify the operation codes for the necessary operations.
For example, we will use Cancel check with code 172 and Dash with code 122.
Take the value of the Fright attribute as a code
Create a new role and add the rights to the necessary operations - Void Check and Trait
Make a ROLES query and get the OpRight value
<Item Ident="1000146" Name="TestRole" Code="9" Status="rsActive"> <OpRights> <Data BinaryCoding="Base64Text">AAAAAAAAAAAAAAAAAAAABAAAAAAAEAAAAAAAAAAAAAA=</Data> </OpRights> </Item> |
Translate to bitstream
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000100 00000000 00000000
00000000 00000000 00000000 00010000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
It turns out that bits are set: 126 and 172. You can use the online converter to check your translation. . The results must match.
If you're having problems, make sure you're reading the bit order correctly - it's reversed. For example, two operations are included here:
254: Application "Main Cashier"
014: Keypad code
Bits are counted from low to high, i.e. 01000000 is bit 7 on and 00000000 01000000 is bit 14 on because the first bit is a null operation, 00000000 00001000 is bit 11 on.
00000000 01000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 01000000