getRights
public static function Role::getRights( $id );
Get list of sites with access permissions assigned within a role. Method returns array (see example), where keys are site IDs and values is array of available operations (zero key means access by default for a role):
- denied - access denied
- read – read access (automatically assigned by the system when additionally indicating any other access permission other than denied)
- edit – edit access (for page content)
- sett – setting edit access
- public – publishing access
- delete – deleting access (for removing to and restoring from recycle bin)
Parameters
Parameter | Description | Version |
---|---|---|
id | Role ID. |
Examples
if (\Bitrix\Main\Loader::includeModule('landing')) { print_r(\Bitrix\Landing\Role::getRights(11)); /** array ( 0 => array ( 0 => 'denied', ), 10 => array ( 0 => 'read', 1 => 'edit', 2 => 'sett', ), ) */ }
© «Bitrix24», 2001-2024