[#8848] a Listing of Groups in the account Block would be nice
Summary a Listing of Groups in the account Block would be nice
Queue Horde Base
Queue Version Git master
Type Enhancement
State Accepted
Priority 1. Low
Owners
Requester Klaus.Steinberger@physik.uni-muenchen.de
Created 2010-02-02 (4090 days ago)
Due
Updated 2011-06-02 (3605 days ago)
Assigned
Resolved
Milestone
Patch No

Comments
Klaus.Steinberger@physik.uni-muenchen.de 2010-02-02 14:44:49
It would be nice if the "My Account Information" Block would also list 
the groups a user belong to. I starting point for a patch is appended 
to this request. It works, but misses the localization, and could be 
done probably nicer. It list first the number of groups a user belongs 
to, and then line for line the groups.

michael.groene@zel.uni-hannover.de 2011-05-25 15:35:55
> It would be nice if the "My Account Information" Block would also 
> list the groups a user belong to. I starting point for a patch is 
> appended to this request. It works, but misses the localization, and 
> could be done probably nicer. It list first the number of groups a 
> user belongs to, and then line for line the groups.

I would really like this feature, too.

In /lib/Block/Account/Base.php, group data could be read from backend 
specified in $conf[group][driver], as suggested in the patch.

Further I found a little bug in lib/Block/Account.php:34
$params = array_merge(
             $conf['accounts']['params'],
             array('user' => $registry->getAuth('bare')));

I had changed the line to the following, because 
var_dump($conf['accounts']['params']) gives NULL, when not set and 
makes array_merge not to work:
         $params = array_merge(
             (array)$conf['accounts']['params'],
             array('user' => $registry->getAuth()));

Further I removed 'bare', because it cutted of the domain-part of the 
mailaddress.

Git Commit <commits@lists.horde.org> 2011-06-02 21:34:29
Changes have been made in Git for this ticket:

Don't strip domain, cast params to array (Bug #8848).

  3 files changed, 8 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/a13466fc882f2f68aed3cd66dd8222836c611791