Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.16.14

Request #6517 $lu->getproperty('allgroups')
Submitted: 2006-01-18 10:27 UTC Modified: 2006-01-23 07:39 UTC
From: murphy at spreekonzept dot de Assigned: lsmith
Status: Closed Package: LiveUser
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-01-18 10:27 UTC] murphy at spreekonzept dot de
Description: ------------ Currently, the $lu->getproperty('group_ids') delivers a) MEDIUM: all group-id's of groups the user is in (because subgroups are not available in this Schema) b) COMPLEX: all group-id's of groups and subgroup-id's the user is in I have written an application with the Complex-Schema and came to a point where it would've been helpful to get all group-id's of groups the user is in, but no subgroups - because the system in my case only allowed one group per user (with as many subgroups you want) and I wanted a quick way to get the group-id of the user. ATM this is only possible by instantiating a LiveUser_Admin object. This is one of some cases I stumbled upon, where the seperation of Auth/Perm/Admin resulted in a dirty architectural decision, where it could've been so easy. This is just a suggestion and based on a (german) discussion here: http://www.pear-forum.de/ftopic919.html Greetings, Thomas

Comments

 [2006-01-18 10:33 UTC] murphy at spreekonzept dot de
Well seems I actually forgot the suggestion itself: Seperate $lu->getproperty('group_ids') into $lu->getproperty('group_ids') => get all groups, no subgroups $lu->getproperty('all_group_ids') => get all groups with subgroups
 [2006-01-23 07:39 UTC] lsmith
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. $lu->getproperty('group_ids') will remain as is $lu->getproperty('user_group_ids') is now added and contains no subgroups (available in both medium and complex)