[TYPO3-commerce] Re strict Categories from BE Users

David Toshack david at vaultin.com
Mon Nov 12 01:06:02 CET 2007


Hi,

I guess this functionality doesn't exist yet, but do you have any clues as
to how to restrict backend users to a branch of categories?

Even a quick and dirty solution would be great for the time being. It would
be nice to be able to apply these restrictions to the Commerce->Category
module but the select field in the Edit Product list item would also suffice
for now.

All the categories I'd like to restrict the backend user to are in the same
sys_folder so even to restrict to a PID would be very useful.

I see that mod_category/index.php uses a class in the lib directory called
tx_commerce_leafCategoryData. There doesn't seem to be a way to pass a uid
or pid to leafCategoryData though.

However, the class it extends; tx_graytree_leafData has a function called
getSubRecords and another, setPidList.

Could either of these be used within leafCategoryData somehow to choose from
a uid or pid rather than the whole tree? Or am I barking up the wrong tree?
... excuse the pun :-)


Cheers,
David

-- 
View this message in context: http://www.nabble.com/Restrict-Categories-from-BE-Users-tf4788094.html#a13697746
Sent from the TYPO3 - Projects - Commerce mailing list archive at Nabble.com.



More information about the TYPO3-project-commerce mailing list