From 6671bd8b855758763e3111ea18647d2cb51b9365 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 6 Oct 2009 17:32:58 -0700 Subject: Allow a groups property on the User implementation and load the Identity drivers early in the process so the session deserialization works. --- modules/gallery/helpers/user.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/gallery/helpers') diff --git a/modules/gallery/helpers/user.php b/modules/gallery/helpers/user.php index 2044964f..f148f720 100644 --- a/modules/gallery/helpers/user.php +++ b/modules/gallery/helpers/user.php @@ -174,10 +174,13 @@ class user_Core { return $locale; } - /** - * Make sure that we have a session and group_ids cached in the session. + /** + * Make sure that we have a session and group_ids cached in the session. This is one + * of the first calls to reference the user so call the Identity::instance to load the + * driver classes. */ static function load_user() { + Identity::instance(); $session = Session::instance(); if (!($user = $session->get("user"))) { $session->set("user", $user = self::guest()); -- cgit v1.2.3