CCourse::SetPermission
CCourse::SetPermission( int COURSE_ID, array arPERMISSIONS );
The SetPermission method sets the access permissions arPERMISSIONS to the training course identified by the COURSE_ID.
Parameters
Parameter | Description |
---|---|
COURSE_ID | The course ID. |
arPERMISSIONS | The array in the format Array("group ID"=>"access
permission", ....). Access permission can be one of the following:
|
See Also
Example
<? CCourse::SetPermission($COURSE_ID, Array("2"=>"R", "3"=>"W")); ?>
© «Bitrix24», 2001-2024