Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Admin Profiles not adding permission for sub-page of categories (product) in 1.5.1

    Hi,
    we noted after installing the Image Handler that Admin Profiles (standard of 1.5.1) is not providing permission for a CUSTOM profile for the product page, in order to update product info.

    There is a permission to access the products yes, and the admin user can see all categories and subcategories but ONLY WHEN clicking the product on the category page in order to open the product form, it goes to this denied.php page instead. Superuser continues to be able to edit and update the products.

    After installing IH 4, their thread people said the issue has nothing to do with the thread, I've been trying to find out what could be the issue. Also replaced the file category_product_listing.php that IH4 changed to the original but it didn't solve the issue. Now I noted that the database actually have give the permission for the categories page but NOT for the product page that is not in the menu indeed.

    It looks like that this got solved by adding the permission straight to the database.

    INSERT INTO `ourdb_prefix151`.`prefix151_admin_pages_to_profiles` (
    `profile_id` ,
    `page_key`
    )
    VALUES (
    '2', 'product'
    );


    Can somebody re-produce this bug for the custom profile? Basically just to add a custom profile and look if that one is able to actually edit products under categories without getting to the page "denied". At the same time the superuser should work perfectly.
    I may be blond but at least I found Zen.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Admin Profiles not adding permission for sub-page of categories (product) in 1.5.

    .

    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.

  3. #3
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Admin Profiles not adding permission for sub-page of categories (product) in 1.5.

    Yes, I have been part of the discussion in the latter link, and also got the constants away from the debug log after that. Currently the updating works because I edited the database directly but from the above "product types admin access" I'm not able to filter what should have been corrected in the code when the webshop is indeed 1.5.1 and it is not about the other products types but the general product type where the issue appears (could be of course the other ones as well but didn't test those since they are not needed).

 

 

Similar Threads

  1. Product Access for Admin Profiles?
    By dannyd in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 3 Apr 2013, 06:27 AM
  2. Adding Text to Sub-Categories page
    By Rob905 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jun 2009, 09:16 PM
  3. Show sub-sub categories underneath sub-categories on the category page?
    By tomrice in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jun 2009, 03:05 AM
  4. Admin Profiles / Restrict Product Categories
    By MrGForce in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Oct 2008, 12:45 AM
  5. Adding Admin profiles AFTER cart is set up
    By Pocohantus in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 13 Apr 2008, 12:50 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