[Tickets #8848] Re: a Listing of Groups in the account Block would be nice

bugs at horde.org bugs at horde.org
Wed May 25 15:35:55 UTC 2011


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/8848
------------------------------------------------------------------------------
  Ticket           | 8848
  Aktualisiert Von | michael.groene at zel.uni-hannover.de
  Zusammenfassung  | a Listing of Groups in the account Block would be nice
  Warteschlange    | Horde Base
  Version          | Git master
  Typ              | Enhancement
  Status           | Accepted
  Priorität        | 1. Low
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


michael.groene at zel.uni-hannover.de (2011-05-25 15:35) hat geschrieben:

> 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.






More information about the bugs mailing list