Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Such a restriction is possible only in the public part (search is not taken into account), or with strong customization (either your own level of rights, or events + public).
The fact is that the Bitrix rights system determines the maximum rights to access the system (with the exception of showing the administrative panel and excluding groups when mapping in AD).
Thus, if a user is in both groups, then he will see this section, as the "all users" group sees it.
Or you need to create an additional group, where to include everyone except the users of this group.
if(in_array($group_id, $USER->GetUserGroupArray())){
echo 'user in group '.$group_id;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question