View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007650 | OXID eShop (all versions) | 2.4. Administer products | public | 2024-05-22 16:19 | 2024-07-03 15:20 |
Reporter | michael_keiluweit | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Summary | 0007650: EE: Removing products from a category doesn't respect the viewable / buyable rights | ||||
Description | The Enterprise Edition has the feature to make categories only visible / buyable for certain customer groups. All products assigned to this category inherit the visibility. While assigning / unassigning the user groups this part of the code is considered and it works fine. But in case a product is unassigned from the category, the framework removes the entry from oxobject2category, but misses the part to remove it also from the table oxobjectrights. This leads to dead rows in the table oxobjectrights and causes products to be not visible in the frontend, altough they aren't assigned to a restricted category anymore. | ||||
Steps To Reproduce | 1) install EE 7.1 2) go to admin 3) create a category 4) Add a product to a category (admin -> administer products -> categories -> Main -> Assign Products 5) Open the tab Rights and assign a user group to "Assign User Groups (Exclusively visible)". 6) Check the category and the product in the frontend, you shouldn't be able to see them anymore, until you are part of the user group. 7) go to admin, and remove the product from the category, using the same menu as in step 4. 8) go to frontend. The product is still not visible, because the framework hasn't removed the entry from the table oxobjectrights. | ||||
Additional Information | Workaround: Always be sure to unassign and assign again the user group, to make sure the framework has processed the latest assignments. | ||||
Tags | Rights & Roles | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||