RemoveFileAccessPermission
bool CMain::RemoveFileAccessPermission( string path, mixed groups = false )
The method deletes access permissions for a file or a folder. Returns true on success and false otherwise. Non-static method.
Parameters
Parameter | Description |
---|---|
path | Path to the file or folder relative to the site root. In case of multiple sites, if the root directory is different this parameters should specify an array:array("site ID", "Path to file or folder relative to the site root") |
groups | Array of groups whose permissions are to be deleted. If false, the method deletes the access permissions of all groups.
Optional parameter. By default the value is false. |
See Also
Examples of use
<? // delete permissions for the file // /en/index.php of user groups #5 and #23 if ($APPLICATION->RemoveFileAccessPermission("/en/index.php", array(5, 23))) ShowNote("Access permissions modified."); ?>
© «Bitrix24», 2001-2024