File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,9 @@ public function getOrgID()
55
55
return $ this ->orgid ;
56
56
}
57
57
58
- public function inOrg ($ user )
58
+ public function inOrg ($ user, $ ignorecache = false )
59
59
{
60
- $ org_group = $ this ->getLDAPOrgGroup ();
61
- $ members = $ org_group ->getAttribute ("memberuid " );
62
- return in_array ($ user , $ members );
60
+ return in_array ($ user ->getUID (), $ this ->getOrgMemberUIDs ($ ignorecache ));
63
61
}
64
62
65
63
public function getOrgMembers ($ ignorecache = false )
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public function init($send_mail = true)
107
107
$ orgEntry ->init ();
108
108
}
109
109
110
- if (!$ orgEntry ->inOrg ($ this -> uid )) {
110
+ if (!$ orgEntry ->inOrg ($ this )) {
111
111
$ orgEntry ->addUser ($ this );
112
112
}
113
113
You can’t perform that action at this time.
0 commit comments