Zen Cart Logo
Forums / General Questions / Restricting admin access to an individual EZ page or Defined page

Restricting admin access to an individual EZ page or Defined page

Views: 524

Results 1 to 2 of 2
4 Apr 2014, 1:59 PM
#1
dave_mc avatar

dave_mc

New Zenner

Join Date:
Apr 2007
Location:
Coventry, West Midlands
Posts:
36
Plugin Contributions:
0

Restricting admin access to an individual EZ page or Defined page

I want to get somebody to manage the day to day running of an installation and was wandering if there was a way I could restrict access to an individual EZ page or Defined page? I am set up as the 'super user' and have a profile allowing access to edit the EZ pages and Defined pages in place - but do not want him/her messing with a particular page. Any help would be appreciated.

4 Apr 2014, 9:36 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Restricting admin access to an individual EZ page or Defined page

Dave Mc:

I want to get somebody to manage the day to day running of an installation and was wandering if there was a way I could restrict access to an individual EZ page or Defined page? I am set up as the 'super user' and have a profile allowing access to edit the EZ pages and Defined pages in place - but do not want him/her messing with a particular page. Any help would be appreciated.

I've considered trying to implement something similar, and my thoughts were to duplicate the code that gives access to that area and use a check to hide or when selected prevent access to the one (or two, etc) items that I didn't want to allow access, then add an opption to the admin panel that would call that code with the user only granted access to that version and not the original.

If there is a more robust way that also wouldn't use significant hard coding, that would be great.

On further thought though, perhaps it would just be easier to add the extra link into the admin, and then do checks in the existing code of if the user meetsa certain admin access right then they can see/manage that option.

More rbe to create a new configuration page to manage that list. List of "people (admin roles)" and option(s) associated with that role.