A
A
Anton Ovchinnikov2021-03-20 08:03:52
1C-Bitrix
Anton Ovchinnikov, 2021-03-20 08:03:52

Why does a site visitor on Bitrix, after several page updates or site transitions, get authorization as an admin?

There are two access groups, admin and all users. After several updates of one page or transitions to other pages, authorization occurs as an admin, an admin panel appears under his login.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-03-20
@karabanov

Perhaps somewhere in the code there is a method that forcibly authorizes the user with ID1.
Something like:

<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
global $USER;
$USER->Authorize(1);
LocalRedirect(“/bitrix/admin/”);
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question