Thread
:
Customize admin area according user permission.
View Single Post
#
4
04-11-2017, 08:13 AM
qualiteam
X-Guru
Join Date: Dec 2010
Posts: 6,373
Re: Customize admin area according user permission.
This is the class that controls the Modules page:
https://github.com/xcart/xcart5/blob/master/src/classes/XLite/Controller/Admin/Module.php
You should decorate it from your custom module, add the checkACL() method and change it so that the page is visible to users that you need. You can find this method in the parent class:
https://github.com/xcart/xcart5/blob/master/src/classes/XLite/Controller/Admin/AAdmin.php
Also, you may need to decorate the following classes from your custom module:
-
https://github.com/xcart/xcart5/blob/3baf515b75d0155444353fca15545c9a655411bc/src/classes/XLite/View/Menu/Admin/LeftMenu.php
-
https://github.com/xcart/xcart5/blob/c8b4fa7834a61239735f84527b4095723304e6fc/src/classes/XLite/View/Menu/...place/Menu.php
__________________
Alex Solovev,
Qualiteam
---
User manual
Video tutorials
X-Cart FAQ
You are welcome to press "Thanks" button
if you find this post useful
Click here to learn how to apply patches
X-Cart Extensions
qualiteam
View Public Profile
Send a private message to qualiteam
Find all posts by qualiteam