Answer the question
In order to leave comments, you need to log in
How can I display my blocks for the admin?
Hello. I installed rbac and it advises to use:
'items' => Helper::filter($menuItems) in order to display its own navigation for each role.
If the moderator does not have permission to view a particular link, it will not be displayed in his navigation.
I'm not satisfied with the default navigation and I made my own. However, I can't make a separate navigation view for the administrator and for the moderator. How to implement this code in the view:
<?php if(If you are an administrator): ?>
This text is visible only to the administrator
<?php endif;?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question