missing $contact_app parameter, stalling grants

This commit is contained in:
Ralf Becker 2011-06-27 15:30:56 +00:00
parent 80c4d0d5c6
commit b093cd8720

View File

@ -248,7 +248,7 @@ class addressbook_so
}
if ($this->user)
{
$this->grants = $this->get_grants($this->user);
$this->grants = $this->get_grants($this->user,$contact_app);
}
if ($this->account_repository == 'ldap' && $this->contact_repository == 'sql')
{
@ -331,9 +331,10 @@ class addressbook_so
* Get grants for a given user, taking into account static LDAP ACL
*
* @param int $user
* @param string $contact_app='addressbook'
* @return array
*/
function get_grants($user)
function get_grants($user,$contact_app='addressbook')
{
if ($user)
{