Answer the question
In order to leave comments, you need to log in
How to change the page to which access is denied?
There is a registered user group that does not have access to the web form, if you go to the page where it is located, the authorization form pops up, but the user is already authorized, I would like to place my piece of code there, but I don’t understand where to find this file. Help me please.
Answer the question
In order to leave comments, you need to log in
As I understand it, Bitrix always uses an authorization form if access to a section or page is denied.
In the end, I removed access rights for certain user groups and just did a check
global $USER;
$groupID = 8;
if (in_array($groupID,$USER->GetUserGroupArray())){
echo 'Пользователь состоит в группе';
} else {
echo 'Пользователь НЕ состоит в группе';
}
From a link in a browser, right?
Read the link - is there such a directory on the site?
1. If there is, open the index.php file in this directory and start reading the code.
2. If there is no such directory, then rotting works. Open the urlrewrite.php file in the root of the project and start reading the code. Find the desired processing rule and go to step 1.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question