[Tickets #11683] Re: Core/Topbar creates Prefs object twice

bugs at horde.org bugs at horde.org
Mon Nov 12 15:35:50 UTC 2012


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

Ticket-URL: http://bugs.horde.org/ticket/11683
------------------------------------------------------------------------------
  Ticket           | 11683
  Aktualisiert Von | heinz at htl-steyr.ac.at
  Zusammenfassung  | Core/Topbar creates Prefs object twice
  Warteschlange    | Horde Framework Packages
  Version          | Git master
  Typ              | Bug
  Status           | Feedback
  Priorität        | 2. Medium
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


heinz at htl-steyr.ac.at (2012-11-12 15:35) hat geschrieben:

I am refactoring the Prefs LDAP-Driver using the Horde Ldap class

The Driver can not bind to the LDAP directory as user
without having a username set.

Of corse this could be checked in Horde_Prefs_Storage_Ldap class.

But Preferences belongs to (logged in) users and therefore a username  
should be set.

I would use something like this to check the Prefs type:
!($GLOBALS['prefs'] instanceof Horde_Prefs_Session))
instead of creating a new object (principle question)

$GLOBALS['prefs'] should be set at logged in users

Heinz





More information about the bugs mailing list