Документация для разработчиков
Темная тема

GetContractPermissions

Описание и параметры

text
CAdvContract::GetContractPermissions(
	int CONTRACT_ID
);

Метод возвращает права всех пользователей по заданному контракту. Метод нестатический.

Параметры метода

Параметры Описание
CONTRACT_ID ID контракта.

Пример

Пример массива, возвращаемого методом

Array
(
	[VIEW] => Array
		(
			[0] => Array
				(
					[USER_ID] => 341
					[USER_LOGIN] => view
					[USER_NAME] => Сергей
					[USER_LAST_NAME] => Рыжиков
					[USER_EMAIL] => mail@server.com
				)

			[1] => Array
				(
					[USER_ID] => 340
					[USER_LOGIN] => edit
					[USER_NAME] => Анна
					[USER_LAST_NAME] => Долгова
					[USER_EMAIL] => mail@server.com
				)

			[2] => Array
				(
					[USER_ID] => 2
					[USER_LOGIN] => nessy
					[USER_NAME] => Vitaly
					[USER_LAST_NAME] => Kaplich
					[USER_EMAIL] => nessy@bitrix.bx
				)

		)

	[ADD] => Array
		(
			[0] => Array
				(
					[USER_ID] => 342
					[USER_LOGIN] => add
					[USER_NAME] => Андрей
					[USER_LAST_NAME] => 
					[USER_EMAIL] => mail@server.com
				)

			[1] => Array
				(
					[USER_ID] => 340
					[USER_LOGIN] => edit
					[USER_NAME] => Анна
					[USER_LAST_NAME] => Долгова
					[USER_EMAIL] => mail@server.com
				)

			[2] => Array
				(
					[USER_ID] => 2
					[USER_LOGIN] => nessy
					[USER_NAME] => Vitaly
					[USER_LAST_NAME] => Kaplich
					[USER_EMAIL] => nessy@bitrix.bx
				)

		)

	[EDIT] => Array
		(
			[0] => Array
				(
					[USER_ID] => 340
					[USER_LOGIN] => edit
					[USER_NAME] => Анна
					[USER_LAST_NAME] => Долгова
					[USER_EMAIL] => mail@server.com
				)

			[1] => Array
				(
					[USER_ID] => 2
					[USER_LOGIN] => nessy
					[USER_NAME] => Vitaly
					[USER_LAST_NAME] => Kaplich
					[USER_EMAIL] => nessy@bitrix.bx
				)

		)

)


© «Битрикс», 2001-2024, «1С-Битрикс», 2024