Answer the question
In order to leave comments, you need to log in
How to add a group correctly?
Hello! There is a code that opens access to content to certain user groups:
{if $smarty.session.current_user_group_name eq 'admin'}
Answer the question
In order to leave comments, you need to log in
{if $smarty.session.current_user_group_name eq 'admin' || $smarty.session.current_user_group_name eq 'relator'}
It's also possible like this:
in principle, in_array can also be used in a purely php syntax
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question