A
A
Aleksander9112018-03-31 11:03:58
1C-Bitrix
Aleksander911, 2018-03-31 11:03:58

How to set permissions for a link?

Good day everyone.
There are two links, one should be shown to everyone, except for the group "Wholesale buyers" id 11, and the second one, on the contrary, only to this group. Tell me how to implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2018-03-31
@gromdron

For both cases, the static method \CSite::InGroup([11]) will help you , as well as the condition for displaying the menu item (if they are of course in the menu)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question