mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
LDAP: also those functions were not meant to be static
This commit is contained in:
parent
6c670cb82d
commit
231eec7325
1 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ class OC_USER_LDAP extends OC_User_Backend {
|
|||
*
|
||||
* Get a list of all users.
|
||||
*/
|
||||
public static function getUsers(){
|
||||
public function getUsers(){
|
||||
$ldap_users = OC_LDAP::fetchListOfUsers($this->ldapUserFilter, array(OC_LDAP::conf('ldapGroupDisplayName'), 'dn'));
|
||||
$users = OC_LDAP::ownCloudUserNames($ldap_users);
|
||||
return $users;
|
||||
|
|
@ -120,7 +120,7 @@ class OC_USER_LDAP extends OC_User_Backend {
|
|||
* @param string $uid the username
|
||||
* @return boolean
|
||||
*/
|
||||
public static function userExists($uid){
|
||||
public function userExists($uid){
|
||||
return in_array($uid, self::getUsers());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue