Documentation

BX24.selectAccess

void BX24.selectAccess(Array value, Function callback)

void BX24.selectAccess(Function callback)

Creates and shows a dialog box in which a user can select access permissions.

The value parameter specifies the access permissions that will be grayed out in the dialog box and thus unavailable. There is no way to specify an initial permission selection.

When a user confirms selection and closes the dialog box, the system calls the callback function passing an array of objects each of which have the following format: {id: Access_permission_ID, name: permission_name}.

The access permission ID's are the abbreviations in the format:

  • U1 - a user with the ID = 1;
  • SG4 - a social network group with the ID = 4;
  • AU - all the signed in users.

Please refer to Access Rights for more information on access permissions.



© «Bitrix24», 2001-2024
Up