S
S
sapsara2019-01-30 10:58:00
1C-Bitrix
sapsara, 2019-01-30 10:58:00

Access to directory partition for only one group?

Hey! Tell me, how can I remove access for one group for a directory partition, but leave accessibility for the "all users" group?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2019-01-30
@sapsara

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.

E
Evgeny Cherdantsev, 2019-01-30
@phobos92

if(in_array($group_id, $USER->GetUserGroupArray())){
echo 'user in group '.$group_id;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question