Skip to content

Commit 11f599b

Browse files
authored
Merge pull request #125 from uspdev/issue_124
filtrando busca somente para users :+1:
2 parents fd2a2f3 + 817d112 commit 11f599b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Ldap/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static function createOrUpdate(string $username, array $attr, array $grou
7979
public static function show(String $username)
8080
{
8181

82-
$user = Adldap::search()->where('cn', '=', $username)->first();
82+
$user = Adldap::search()->users()->where('cn', '=', $username)->first();
8383
if(!is_null($user)){
8484

8585
$attr = [];

0 commit comments

Comments
 (0)