string CMain::GetFileAccessPermission( mixed path, array groups )
The method GetFileAccessPermission retrieves the access permission of a file or folder.
|path||Path to the file or folder relative to the site root. In case of multiple sites, if the DOCUMENT_ROOT of the site of interest is different,
pass an array in the following format:
array("Site ID", "Path to the file or folder")
|groups||Array of the user groups ID's for which the access permissions are to be retrieved. If false, permissions for the current user are returned.
Optional; false by default.
Returns a symbol which defines the permission:
<? if ($APPLICATION->GetFileAccessPermission("/en/index.php")<="D") ShowError("Access to file denied."); ?>
|© 2001-2005 Bitrix||Bitrix Site Manager - Content Management & Portal Solutions|