S
S
sadieff2016-12-06 08:54:20
1C-Bitrix
sadieff, 2016-12-06 08:54:20

How to connect a style file for an authorized administrator in Bitrix?

I received the task to correct the working site on Bitrix. I would like the style file to be connected only for an authorized administrator, and others would not see this file. How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Mifle, 2016-12-06
@sadieff

Here it is written
, in general, something like this:

if($USER->isAdmin())
{
  $APPLICATION->SetAdditionalCSS("path/to/file/css.css");
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question