Implement Ldap_User::groups() to match K24 APIs.
This commit is contained in:
parent
5add59a795
commit
3eb4e6920d
@ -239,9 +239,6 @@ class Ldap_User implements User_Definition {
|
||||
case "id":
|
||||
return $this->ldap_entry["uidnumber"][0];
|
||||
|
||||
case "groups":
|
||||
return IdentityProvider_Ldap_Driver::groups_for($this);
|
||||
|
||||
case "locale": // @todo
|
||||
return null;
|
||||
|
||||
@ -266,6 +263,10 @@ class Ldap_User implements User_Definition {
|
||||
}
|
||||
}
|
||||
|
||||
public function groups() {
|
||||
return IdentityProvider_Ldap_Driver::groups_for($this);
|
||||
}
|
||||
|
||||
public function avatar_url($size=80, $default=null) {
|
||||
return sprintf("http://www.gravatar.com/avatar/%s.jpg?s=%d&r=pg%s",
|
||||
md5($this->email), $size, $default ? "&d=" . urlencode($default) : "");
|
||||
|
Reference in New Issue
Block a user