Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Security API > Methods

Security API :getPermissions

Scroll Prev Next More

 

Gets permissions for a certain table.

Syntax

Security.getPermissions(table)

Arguments

table

the name of the table.

Return value

Returns an array with the table permissions.

Example

This example shows how to output the current user data:

 

dynamic table = "table1";
MVCFunctions.print_r(Security.getPermissions(table));

Sample output

{"A":true,"E":true,"D":true,"S":true,"P":true,"I":true}

See also:

Security API: setPermissions

Event: GetTablePermissions

User group permissions

About Security API