Edit admin panel

This topic has been marked as not a support question.

Hi, i have an group on the admin with no acces to the CP, but they see the “BurnEngine” menu on the left. How can i hide it?

January 16, 2017 at 4:00 pm #55476

Hi,

The only way to hide BE admin panel is to add some CSS to admin stylesheet:

#tb_menu_burnengine {
  display: none;
}

BR,
ThemeBurn team

January 19, 2017 at 11:34 pm #55612

But this will be for all users. I wanna only for one group. There is an way for do this?

January 20, 2017 at 10:24 am #55639

Hi,

Here is a second way with a server side check:

1) Open system/modification/admin/view/template/common/menu.tpl

2) Find this code line:

<?php class_exists('TB_Engine') && TB_Engine::hasInstance() && print TB_Engine::instance()->getThemeData()->get('oc_admin_menu'); ?>

3) Wrap it with this check:

<?php global $registry; $userac = $registry->get('user'); if($userac->hasPermission('access','module/BurnEngine')
|| $userac->hasPermission('access','theme/BurnEngine')
|| $userac->hasPermission('access','extension/theme/BurnEngine')): ?>

CODE FROM STEP 2

<?php endif; ?>

P.S. Unfortunately, this change will be removed on every modification refresh.

BR,
ThemeBurn team

January 23, 2017 at 11:59 pm #55756
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.