How to change the admin panel for new admins
Hi everyone.
I would like to ask how to change the admin main panel for newly added administrators.
I add new admin and I click the menus which I want him to use. For example I add admin, who can only access products, categories, IH...as he will be only adding new products to eshop. BUT, when he logs in with his admin login, he can see the main admin panel (admin dashboard - or whatever it is called), where he can see the statistics, new customers and new orders. I DONT WANT him to see all this, so I need to "hide" it somehow.
Can someone help me with this?
Thank you,
Peter
Re: How to change the admin panel for new admins
1. Create an admin "Profile" for that user. Perhaps their role is "Sales" so call that profile "Sales". Then assign the appropriate permissions to that role/profile.
2. Create/Edit the admin "User" and assign them the appropriate role.
Re: How to change the admin panel for new admins
Quote:
Originally Posted by
DrByte
1. Create an admin "Profile" for that user. Perhaps their role is "Sales" so call that profile "Sales". Then assign the appropriate permissions to that role/profile.
2. Create/Edit the admin "User" and assign them the appropriate role.
Thank you DrByte.
This is exactly how I created it, but Im talking about the main admin area - after the "User" has logged in. I dont want him to see the statistics, new customers, new orders..ect. It is the page you see right after you log in as admin ( http ://youreshop.com/youradminfolder/index.php )
Re: How to change the admin panel for new admins
What was the source of your installation?
What is the upgrade history and method of your store?
Re: How to change the admin panel for new admins
Quote:
Originally Posted by
kabko
Thank you DrByte.
This is exactly how I created it, but Im talking about the main admin area - after the "User" has logged in. I dont want him to see the statistics, new customers, new orders..ect. It is the page you see right after you log in as admin ( http ://youreshop.com/youradminfolder/index.php )
There are (currently) no configuration elements that control the display (or non-display) of those front-page elements. The functionality that you seek will require custom programming.
Re: How to change the admin panel for new admins
True, there's no built-in way to suppress the display of home-page content based on profile.
But if it's really important to you, you can put conditions around the View/display code in /admin/index.php (or /admin/index_dashboard.php in v155).
There's some work going on to implement some level of restriction capability in v160 since those statistical/data blocks on the homepage are now driven by individual widgets with their own controllers.
Re: How to change the admin panel for new admins
Quote:
Originally Posted by
DrByte
True, there's no built-in way to suppress the display of home-page content based on profile.
But if it's really important to you, you can put conditions around the View/display code in /admin/index.php (or /admin/index_dashboard.php in v155).
There's some work going on to implement some level of restriction capability in v160 since those statistical/data blocks on the homepage are now driven by individual widgets with their own controllers.
Thank you very much.
Could you please specify exactly what code should I insert in which exact file? I kow its something like " If the logged in admin is not the main admin, then do not show the dashboard", but I need the code for this...Im not that good in coding...
Thank you,
Peter
Re: How to change the admin panel for new admins
I haven't tested this and it's not the most elegant, but I'm pretty sure it'll "work":
/admin/index.php around line 48 you'll see this segment. Add the line in red:
Code:
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<?php
if (zen_is_superuser() == false) die();
$customers = $db->Execute("select count(*) as count from " . TABLE_CUSTOMERS);