Hermes: Update to Auth capabilities
authorBen Klang <ben@alkaloid.net>
Fri, 4 Jun 2010 18:40:05 +0000 (14:40 -0400)
committerBen Klang <ben@alkaloid.net>
Fri, 4 Jun 2010 18:40:42 +0000 (14:40 -0400)
hermes/lib/Hermes.php

index 1a927d7..79659be 100644 (file)
@@ -162,7 +162,7 @@ class Hermes {
     function getEmployeesType($enumtype = 'multienum')
     {
         $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
-        if (!$auth->capabilities['list']) {
+        if (!$auth->hasCapability('list')) {
             return array('text', array());
         }
         $users = $auth->listUsers();