Studio-Owens wrote:Actually this wasn't too bad. Took about 15 minutes. OpenCart already had the needed functions, it was just about using them.
I only had to add checks on each <li> using the function hasPermission(). If the admin user has access permission then the list item is shown (the if block is executed). On parent menu items I checked to see if the admin user had access to any of the children items (Products is the child of Catalog for example). If it did then the parent list item is shown. If not then the parent list item is skipped.
I attached the modified header.tpl file with the above modifications (it is from version 1.4.9).
The attached file replaces:
admin/view/template/common/header.tpl
I use opencart 1.5.5.1 but i dont know how to to the attached file (vMod) to my opencart.
if i use just change the header.tpl it doesn't work. can you help me??