Documentation

landing.site.getRights

Scope: landingPermissions to execute: for all

The method returns access permissions for current user. When site does not exist or no access permissions are granted for it, empty array is returned. Otherwise, returns array, consisting of the following values:

  • 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 trash bin).

Parameters

Method Description Available from version
id Site ID.

Example

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


© «Bitrix24», 2001-2024