J
J
johan19972020-12-14 20:55:29
1C-Bitrix
johan1997, 2020-12-14 20:55:29

Checking a user for a specific group does not work correctly, what is the reason?

if (CSite::InGroup([1]))
    echo 'is_admin';

The condition does not work correctly, the user works for all, I go in not authorized, the condition works, but it should not, what is the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2020-12-15
@johan1997

Set the component settings to CACHE_GROUPS = Y

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question