SetPermission
CIBlock::SetPermission( int IBLOCK_ID, array arPERMISSIONS );
Sets arPERMISSIONS for the iblock IBLOCK_ID. Before this, all previously assigned access permissions are removed. Access permissions are set only for iblocks with standard access permissions. Static method.
Parameters
Parameter | Description |
---|---|
IBLOCK_ID | Information block ID. |
arPERMISSIONS | An array of the format Array("group id"=>"permission",
....), where the permission is: E - Adding iblock elements to public section, S - Viewing elements and sections in admin section, T - Adding iblock elements in admin section, D - deny, R - read, U - modify through the workflow, W - read, X - full access (write + the information block access permissions modification). |
See Also
Example
<?<??>
CIBlock::SetPermission($IBLOCK_ID, Array("1"=>"X", "2"=>"R", "3"=>"W"));
?>
© «Bitrix24», 2001-2024