• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/access/role/roleutil.php
  • Класс: BitrixMainAccessRoleRoleUtil
  • Вызов: RoleUtil::loadRole
protected function loadRole()
{
	if (!$this->role)
	{
		$class = static::getRoleTableClass();
		$this->role = $class::getById($this->roleId)->fetchObject();
	}
	if (!$this->role)
	{
		throw new RoleNotFoundException();
	}
	return $this->role;
}