Answer the question
In order to leave comments, you need to log in
How to enable CRM rights check in DealTable::getList?
Good afternoon!
I display user's deals using Bitrix\Crm\DealTable::getList()
There was a problem - users see deals that they should not see.
I remember that in CCrmDealList the check of rights and roles was automatic.
Is there something similar in D7?
Answer the question
In order to leave comments, you need to log in
You are misinterpreting the starting point.
DataMappers are the low-level layer between data and your code. There should not be any verification of rights and, accordingly, it is not there.
To obtain a list of transactions with rights and maintain backward compatibility, you must use the methods:
CCrmDeal::GetList($arOrder = Array('DATE_CREATE' => 'DESC'), $arFilter = Array(), $arSelect = Array(), $nPageTop = false)
CCrmDeal::GetListEx($arOrder = array(), $arFilter = array(), $arGroupBy = false, $arNavStartParams = false, $arSelectFields = array(), $arOptions = array())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question