I
I
itemashabanov2021-08-27 17:47:48
1C-Bitrix
itemashabanov, 2021-08-27 17:47:48

How to display the form only to authorized users in catalog.element and news.list?

Hello. There is a form that should be visible only to authorized users. I found in some article that you can bypass caching in this way:

<div id="add-rev">
  <?$frame = $this->createFrame("add-rev", false)->begin("");?>
    <?if($USER->IsAuthorized()):?>
      // код формы
    <?endif;?>
  <?$frame->end();?>
</div>

But this, unfortunately, does not help. I also checked for the presence of $_SESSION["SESS_AUTH"], but also nothing.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question