Documentation

landing.role.getRights

Important! This feature is available for administrator only.

The method allows to get list of sites with roles defined with a role. The method returns array (see example), where keys are site IDs and values - is the array of available operations (null key means be default access for the role):

  • denied - restrict all,
  • read – read (access permission is automatically set by the system in addition when specifying any other permission than 'denied'),
  • edit – edit (landing page content),
  • sett – set settings,
  • public – publish,
  • delete – delete (to trash bin as well as restore from recycle bin).

Parameters

Parameter Description Available from version
id Role identifier.

Example

BX24.callMethod(
   'landing.role.getRights',
   {
      id: 11
   },
   function(result)
   {
      if(result.error())
      {
         console.error(result.error());
      }
      else
      {
         console.info(result.data());
      }
   }
);


© «Bitrix24», 2001-2024
Up