@@ -57,7 +57,7 @@ private function cancelAllRequests()
57
57
// does not remove user from PI groups
58
58
private function ensureUserDoesNotExist ()
59
59
{
60
- global $ USER , $ SQL , $ LDAP ;
60
+ global $ USER , $ SQL , $ LDAP , $ REDIS ;
61
61
$ SQL ->deleteRequestsByUser ($ USER ->getUID ());
62
62
if ($ USER ->exists ()) {
63
63
$ org = $ USER ->getOrgGroup ();
@@ -79,6 +79,7 @@ private function ensureUserDoesNotExist()
79
79
$ all_users_group ->write ();
80
80
assert (!in_array ($ USER ->getUID (), $ all_users_group ->getAttribute ("memberuid " )));
81
81
}
82
+ $ REDIS ->removeCacheArray ("sorted_users " , "" , $ USER ->getUID ());
82
83
}
83
84
84
85
private function ensureOrgGroupDoesNotExist ()
@@ -89,7 +90,7 @@ private function ensureOrgGroupDoesNotExist()
89
90
$ org_group ->getLDAPOrgGroup ()->delete ();
90
91
assert (!$ org_group ->exists ());
91
92
}
92
- $ REDIS ->removeCacheArray ("sorted_org " , "" , $ user -> getOrg ()->getOrgID ());
93
+ $ REDIS ->removeCacheArray ("sorted_orgs " , "" , $ USER -> getOrgGroup ()->getOrgID ());
93
94
}
94
95
95
96
private function ensureUserNotInPIGroup (UnityGroup $ pi_group )
@@ -103,7 +104,7 @@ private function ensureUserNotInPIGroup(UnityGroup $pi_group)
103
104
104
105
private function ensurePIGroupDoesNotExist ()
105
106
{
106
- global $ USER ;
107
+ global $ USER , $ REDIS ;
107
108
if ($ USER ->getPIGroup ()->exists ()) {
108
109
$ USER ->getPIGroup ()->getLDAPPIGroup ()->delete ();
109
110
assert (!$ USER ->getPIGroup ()->exists ());
0 commit comments