getOperationsForSite
Rights::getOperationsForSite( $siteId )
Method returns current user access permissions. In case of non-existant site or unavailable site access permissions, returns standard state: empty array. Otherwise, returns array, containing possible values:
- denied - access denied
- read – read only (this permission is assigned automatically by the system when specifying any permission different from 'denied')
- edit – edit (for page content)
- sett – settings edit
- public – publication
- delete – deleting (to recycle bin and restoring from recycle bin)
Parameters
Method | Description | Available from version |
---|---|---|
siteId | Site identifier. |
Example
if (\Bitrix\Main\Loader::includeModule('landing')) { $rights = \Bitrix\Landing\Rights::getOperationsForSite($siteId); print_r($rights); }
© «Bitrix24», 2001-2024