Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default HOT TO: prevent non-Superuser to perform specific actions

    I just had a case where a non-Superuser accidentally deleted a category from the catalog. That user normally does have access to the Catalog->Categories/Products page, but should not be able to delete anything.
    For example, you might have a user authorised to do order processing, but that user should NOT be able to delete an order.

    I've attached the files here (instead of making it a plugin). There's one core file affected, although I'm hoping for the notifier to be included in the future releases of Zen Cart so the core file doesn't need modifications.

    The mod can easily be expanded to more actions and could be used for numerous other purposes - in this case it's only being used to prevent any "delete" actions by a non-Superuser.
    NOTE: deleting a customer account is still possible because that action doesn't use the "delete" keyword.
    Attached Files Attached Files

 

 

Similar Threads

  1. v154 Programmable Actions Post-Sale
    By SlaserX in forum General Questions
    Replies: 1
    Last Post: 5 Jan 2015, 06:14 AM
  2. v138a Stamps.com: How do I prevent Non-shippable items from batch importing?
    By gachogavacho in forum Addon Shipping Modules
    Replies: 14
    Last Post: 20 Aug 2014, 08:07 AM
  3. Replies: 0
    Last Post: 17 Jul 2014, 08:17 AM
  4. v151 Prevent use of Gift Voucher toward a specific item?
    By magz in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 14 Nov 2013, 06:11 AM
  5. blank page after various actions
    By mgrunk in forum General Questions
    Replies: 0
    Last Post: 15 Jun 2011, 09:24 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR