There are no authentication drivers providing 'groups' capabilities,
authorJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 12:37:42 +0000 (14:37 +0200)
committerJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 13:35:10 +0000 (15:35 +0200)
and even if there were some, we still want to use the configured
groups backend.

framework/Group/lib/Horde/Group.php

index 302f9d7..a9a5eac 100644 (file)
@@ -142,18 +142,8 @@ class Horde_Group
             return $group;
         }
 
-        $group_driver = null;
-        $group_params = null;
-        $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
-        if ($auth->hasCapability('groups')) {
-            $group_driver = $auth->getDriver();
-            $group_params = $auth;
-        } elseif (!empty($GLOBALS['conf']['group']['driver']) &&
-                  $GLOBALS['conf']['group']['driver'] != 'datatree') {
-            $group_driver = $GLOBALS['conf']['group']['driver'];
-            $group_params = Horde::getDriverConfig('group', $group_driver);
-        }
-
+        $group_driver = $GLOBALS['conf']['group']['driver'];
+        $group_params = Horde::getDriverConfig('group', $group_driver);
         self::_loadDriver($group_driver);
 
         $group = null;