getAreaPermissionBits()

The method returns all area authorizations.

Synopsis

public bit32 getAreaPermissionBits(anytype area);

Return Value

All area authorizations.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main()
{
  shared_ptr<UserManagement> m_um = UserManagement::getInstance();
  anytype area1 = new UserManagementArea("Area1");
  m_um.addArea(area1);
  m_um.saveChanges();
  anytype group = new UserManagementGroup("Group1");
  m_um.addGroup(group);
  m_um.saveChanges();
  group.addArea(area1);
  m_um.saveChanges();
  /* Returns the area names */
  DebugTN("Get area names:", group.getAreaNames(m_um));
  /* Returns the area information */
  DebugTN("Get areas:", group.getAreas(m_um));
  /* Returns the area permissions */
  DebugTN("Get area permissions:", group.getAreaPermissionBits(area1));
}

Assignment

User administration

See also

getArea(), getAllGroups(), getAreaByName()