Hi,
actually its very easy.
All you need to do is copy the index.php from you modules/Administration/index.php
into
custom/modules/Admnistration/index.php
now use this index.php in the custom to do the modification.
user $current_user->id; to set which panels this user (admin type) can see and which dont.
In this file you will see clearly commented section for each of the panel.
You will get the user details using the $current_user;
use print_r($current_user); and check which field you wanna compare on.
i used the $current_user->id;
and do this
PHP Code:
if ($current_user->id != 1)
{
//users and security.
$admin_option_defs=array();
$admin_option_defs['Administration']['user_management']= array($image_path . 'Users','LBL_MANAGE_USERS_TITLE','LBL_MANAGE_USERS','./index.php?module=Users&action=index');
$admin_option_defs['Administration']['roles_management']= array($image_path . 'Roles','LBL_MANAGE_ROLES_TITLE','LBL_MANAGE_ROLES','./index.php?module=ACLRoles&action=index');
$admin_group_header[]= array('LBL_USERS_TITLE','',false,$admin_option_defs, 'LBL_USERS_DESC');
}
this will show this panel for all users except the user with id = 1....
Hope it is helpful !!!
Bookmarks