umGetGroupPrivilegeGoAhead WebServer APIGoAhead EMF

Synopsis

Get the privilege mask for the user group.

Prototype

 #include "um.h"

 short umGetGroupPrivilege(char_t * group);

Parameters

groupgroup name

Description

Privileges are determined by bit-masking the following constants:
PRIV_NONE - user has no privileges
PRIV_READ - user can read files
PRIV_WRITE - user can execute CGIs
PRIV_ADMIN - user can administrate

Return Value

umGetGroupPrivilege returns the privilege mask for the group, or -1 on error.

Example

short privMask = umGetGroupPrivilege(T("users"));

See Also

umSetGroupPrivilege()