Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2011
    Location
    Little Rock, AR USA
    Posts
    10
    Plugin Contributions
    0

    Default 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 [FONT="Courier New"]admin_level[/FONT] element of the [FONT="Courier New"]admin[/FONT] 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?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Limiting Admin Authority

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

  3. #3
    Join Date
    Aug 2011
    Location
    Little Rock, AR USA
    Posts
    10
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Limiting Admin Authority

    Admin Profiles is built-in to v1.5.0
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2011
    Location
    Little Rock, AR USA
    Posts
    10
    Plugin Contributions
    0

    Default 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.
    Last edited by rtwingfield; 12 Sep 2011 at 08:23 PM. Reason: clarification re: tags.

  6. #6
    Join Date
    Aug 2011
    Location
    Little Rock, AR USA
    Posts
    10
    Plugin Contributions
    0

    Default 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 [FONT="Courier New"]</td>[/FONT] tag.


    Code:
        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!

 

 

Similar Threads

  1. v151 Why my Authorize AIM no SSL authority
    By jim.wu in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 13 Dec 2013, 11:13 AM
  2. Admin area and limiting by IP with HTAccess?
    By Profile90909 in forum General Questions
    Replies: 8
    Last Post: 10 Jun 2011, 01:24 PM
  3. Admin: Website Certified by an Unknown Authority
    By Waitrose Carpark in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Feb 2007, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg