[TYPO3-commerce] FYI 96 - RFC 9036 'dmhooks' is calling wrong Permissionrequest

Ingo Schmitt spam at marketing-factory.de
Wed Sep 8 19:37:46 CEST 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://forge.typo3.org/issues/9036

Branches:
trunk

Problem:
When you try to deselect an entry from parent_categories in an category 
record it will be reselected if you're not an admin.

Solution:
The parameter 'read' in $parent->isPSet('read') is passed thru to 
tx_commerce_belib::getPermMask() where is no match for.

Valid values for tx_commerce_belib::getPermMask() are 
show,copy,edit,move,delete,new,editcontent

To fix it you can change from $parent->isPSet('read') to 
$parent->isPSet('show') in hooks/class.tx_commerce_dmhooks.php:861

Notes:
Thanks to Hamsta for reporting thsi bug and creating a fix for it

Mit freundlichen Gruessen
-- 
Ingo Schmitt                        mailto:is at marketing-factory.de
Marketing Factory Consulting GmbH   http://typo3.marketing-factory.de/
Content Management mit Typo3: Beratung - Schulung - Realisierung
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-9036.txt
URL: <http://lists.typo3.org/pipermail/typo3-team-commerce/attachments/20100908/ce083d45/attachment.txt>


More information about the TYPO3-team-commerce mailing list