API docs     >     Users and Permissions     >     Permissions

Permissions->setByUsergroup

Description

setByUsergroup ( $usergroupId, $permission, $objectId, $value )
Sets a Permission for a specific Usergroup

Parameters

$usergroupId
int
$permission
string
Permission (RREAD, RWRITE, RDELETE, RSUB, RSTAGE, RMODERATE, RCOMMENT, RSEND)
$objectId
Object Id
$value
int
Permission value (1 for allowed, 0 for not allowed)

Returns

bool
TRUE on success or FALSE if not allowed