Table of Contents

O4WCheckSecurity routine

Description

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

Syntax

O4WCheckSecurity(reqdPermissions)

Parameters

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.

Returns

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.