Zen Cart Logo
Forums / Basic Configuration / Limiting Admin Authority

Limiting Admin Authority

Views: 649

Results 1 to 6 of 6
12 Sep 2011, 4:38 PM
#1
rtwingfield avatar

rtwingfield

New Zenner

Join Date:
Aug 2011
Location:
Little Rock, AR USA
Posts:
10
Plugin Contributions:
0

Limiting Admin Authority

Can the authority of additional Admin users be limited?

For example, I don't want a stock clerk to have access to the configuration functions, but I would like to create clerical users that can add or remove items, change QOH, etc., but NOT change the site template, header images, side boxes, etc., . . .or (worst case scenario) remove me as the über admin :(

This reference http://www.zen-cart.com/wiki/index.php/Table_admin suggests that nine admin levels are perhaps planned for the admin_level element of the admin table, but noted that currently only 0 or 1 are used . . .other values are ignored. Seems to me that a "Table of Authorities" would be necessary. Is there such an add-on module out there?

12 Sep 2011, 4:44 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Limiting Admin Authority

There is a 3rd party module for admin profiles available in the free software add ons section

12 Sep 2011, 5:17 PM
#3
rtwingfield avatar

rtwingfield

New Zenner

Join Date:
Aug 2011
Location:
Little Rock, AR USA
Posts:
10
Plugin Contributions:
0

Re: Limiting Admin Authority

Thanks for the quick reply. I should have looked in the obvious place, i.e., the free software add ons section before posting. I've Googled and searched the forums, but never hit on the Admin Profiles add on. I'll download and take a look.

Thanks again,
RW

12 Sep 2011, 5:19 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Limiting Admin Authority

Admin Profiles is built-in to v1.5.0

12 Sep 2011, 7:17 PM
#5
rtwingfield avatar

rtwingfield

New Zenner

Join Date:
Aug 2011
Location:
Little Rock, AR USA
Posts:
10
Plugin Contributions:
0

Re: Limiting Admin Authority

Interesting . . .excellent addition to the core code.

I'm running v1.3.9h (what we FreeBSD users would call a stable release). I just completed the installation of the Admin Profiles add-on. I assume that if and when I upgrade to v1.5.0, then the mods to the non-overridden source code files will be retained?

By the way, the orange dots with the P for permissions do not display on the lines with my (currently) two administrators. I haven't had time to research yet, but I suspect a style sheet/table error? . . .perhaps I misplaced a code patch or whacked something like a table tag, div or something.

12 Sep 2011, 9:03 PM
#6
rtwingfield avatar

rtwingfield

New Zenner

Join Date:
Aug 2011
Location:
Little Rock, AR USA
Posts:
10
Plugin Contributions:
0

Re: Limiting Admin Authority

Yep, my typo/insert mistake! The out-of-place orange dots were misplaced because I added the following line of patch code (line #196) after the </td> tag. :blush:

    195 <!-- Following line added by RTW -->
    196 <?php echo '<a href="' . zen_href_link(FILENAME_ADMIN_CONTROL, 'adminID=' . $admins->fields['admin_id']) . '">' . zen_image(DIR_WS_IMAG
ES . 'icon_permissions.gif', ICON_PERMISSIONS) . '</a>'; ?>
    197                 </td>

All said, this is a very useful add-on. Obviously, a lot of thought went into it. I'm so glad that I didn't have to write something like it!

Thanks to the developers!