General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
AddBufferContent
AddChainItem
AddHeadScript
AddHeadString
AddPanelButton
AddViewContent
AuthForm
CaptchaCheckCode
CaptchaGetCode
ConvertCharset
ConvertCharsetArray
CopyFileAccessPermission
GetCSS
GetCurDir
GetCurPage
GetCurPageParam
GetCurUri
GetDirProperty
GetDirPropertyList
GetException
GetFileAccessPermission
GetFileContent
GetFileRecursive
GetMenu
GetMenuHtml
GetMenuHtmlEx
GetMeta
GetNavChain
GetPageProperty
GetPagePropertyList
GetPanel
GetProperty
GetPublicShowMode
GetShowIncludeAreas
GetSiteByDir
GetTemplatePath
GetTitle
GetUserRight
GetUserRoles
IncludeAdminFile
IncludeComponent
IncludeFile
IncludeString
IsHTTPS
MoveJSToBody
RemoveFileAccessPermission
ResetException
SaveFileContent
SetAdditionalCSS
SetCurPage
SetDirProperty
SetFileAccessPermission
SetPageProperty
SetTemplateCSS
SetTitle
ShowBanner
ShowBodyScripts
ShowCSS
ShowHead
ShowHeadScripts
ShowHeadStrings
ShowMeta
ShowNavChain
ShowPanel
ShowProperty
ShowSpreadCookieHTML
ShowTitle
ShowViewContent
ThrowException
get_cookie
set_cookie
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-2023
Up