D
D
dmdiz2021-09-25 16:35:43
1C-Bitrix
dmdiz, 2021-09-25 16:35:43

How to disable access to a deal but allow comments and the entire timeline for a deal in Bitrix24 on the box?

Good day to all.
Bitrix is ​​still a wild animal for me. I'm surprised by its basic settings. Other times there are no simple things.

I fight the second day.

In access rights, sales department employees are prohibited from making changes to a transaction if it has gone into the production direction in order to avoid different situations.

But they need to leave the ability to add tasks, comments, send letters from the transaction, in short, they need access to the timeline (or, as it is more correct to call it, the toolbar) for this.
614f25432119d782039813.png

However, along with the ban on editing, this entire timeline is blocked. Although damn it's just links. You can still add a task to a deal from the "tasks" section. But you need access to all other buttons.

How to do? Tell me please. There is access to the admin part of the box.
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmdiz, 2021-09-25
@dmdiz

Understood.
For those who are interested, this can be done by editing the template.php file
B24 admin ->
Content > Site structure > Files and folders > bitrix > components > bitrix > crm.timeline > templates > .default
(/bitrix/components/bitrix/crm.timeline/ templates/.default)
It has this piece of code:

BX.CrmTimelineManager.create(
        "<?=CUtil::JSEscape($guid)?>",
        {
          ownerTypeId: <?=$arResult['ENTITY_TYPE_ID']?>,
          ownerId: <?=$arResult['ENTITY_ID']?>,
          ownerInfo: <?=CUtil::PhpToJSObject($arResult['ENTITY_INFO'])?>,
          userId: <?=$arResult['USER_ID']?>,
          readOnly: <?=$arResult['READ_ONLY'] ? 'true' : 'false'?>,
          pullTagName: "<?=CUtil::JSEscape($arResult['PULL_TAG_NAME'])?>",
          progressSemantics: "<?=CUtil::JSEscape($arResult['PROGRESS_SEMANTICS'])?>",

We change
readOnly: <?=$arResult['READ_ONLY'] ? 'true' : 'false'?>,

on Added: For those who don't want to lose their changes after the update, it is necessary to place the Timelime component in the development directory (local). To do this: On the server, on the same level as the main bitrix directory (I have: /home/bitrix/www/bitrix), create the "local" directory (if not created): - I have it like this: "/home/bitrix/www /local/" , - inside it is the directory "components", - and inside it is "bitrix" (I got it like this: "/home/bitrix/www/local/components/bitrix/") Now copy here along with all the contents of the component timeline, which is located at: "/home/bitrix/www/bitrix/components/bitrix/crm.timeline".
readOnly: 'false',

And we go into the crm.timeline/templates/.default/template.php already known to us, and make the changes described at the beginning of the post already in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question