API docs     >     Users and Permissions     >     Privileges

Privileges->setByUsergroup

Description

setByUsergroup ( $usergroupId, $privilege, $value )
Sets a Privilege for a specific Usergroup

Parameters

$usergroupId
int
$privilege
string
Privilege
$value
int
Privilege value (1 for allowed, 0 for not allowed)

Returns

bool
TRUE on success or FALSE if not allowed