Sets permissions for a certain table for the current user. Permissions need to be set only once per user session, i.e., in the After Successful Login event.
Permissions should be passed in the form of an array where the keys are specific permission letters:
•A - add,
•D - delete,
•E - edit,
•S - search/list,
•P - print/export,
•I - import,
•M - admin permission. When advanced permissions are in effect (e.g., Users can see/edit their own records only), this permissions grants access to all records.
the name of the table.
an array where the keys are specific permission letters.
No return value.
Enable the Add and disable Delete functionality for the "Cars" table for the current user:
Check if the current user has Add permissions for the "Cars" table: