guides:o4w:o4w_api:o4wchecksecurity

O4WCheckSecurity routine

Set a permission level on a routine. O4WCheckSecurity will validate the user's permissions against the required permission level.

O4WCheckSecurity(reqdPermissions)

The function has the following parameters:

ParameterDescription
reqdPermissionsPermission level.

Permission level "0" is the highest level; users with permission level 0 can run any O4W routine.

Integer.

0 if the user needs permissions but is not logged and

1 if the user is authorized to run the routine.

-1 if the user is logged in but has insufficient permissions to run the routine.

  • guides/o4w/o4w_api/o4wchecksecurity.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1