From: Shaun M. <sh...@ae...> - 2006-09-02 02:15:57
|
Matt, how is the group support supposed to work (or was supposed to work) in Item/Manager ? core/Item.php and core/Manager.php are used across a lot of modules in phpWebSite but the permission support in them is left half implemented it seems. In Item.php the _groups member var is commented out. We do however have addGroup() and removeGroup() funcs that add and remove groups to/from an Item. In Manager.php we have getItems() and one of the parameters is $filterGroups which filters out Items if the user doesn't belong to one of the groups the Item belongs to. We also have the GROUPS column to show which groups an Item belongs to in a list/row display. I'm wondering how much trouble it is to use these features or what extra needs adding to complete the support. eg. adding filter support to Manager's getList() function. That could pretty much add view permission support, easily, to Article, Announce, Documents, phpwsBB, PhotoAlbum and many more 3rd party mods. It'd stave off a bunch of hacks at each module level too. Shaun aegis design - http://www.aegisdesign.co.uk aegis hosting - http://www.aegishosting.co.uk |