Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/lib/UnityGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function cancelGroupJoinRequest($user, $send_mail = true)
// $users = $this->getGroupMembers();

// // now we delete the ldap entry
// \ensure($this->entry->exists());
// $this->entry->ensureExists();
// $this->entry->delete();
// $this->REDIS->removeCacheArray("sorted_groups", "", $this->gid);
// foreach ($users as $user) {
Expand Down
16 changes: 8 additions & 8 deletions resources/lib/UnityUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function setOrg($org)

public function getOrg($ignorecache = false)
{
\ensure($this->exists());
$this->entry->ensureExists();
if (!$ignorecache) {
$cached_val = $this->REDIS->getCache($this->uid, "org");
if (!is_null($cached_val)) {
Expand Down Expand Up @@ -194,7 +194,7 @@ public function setFirstname($firstname, $operator = null)
*/
public function getFirstname($ignorecache = false)
{
\ensure($this->exists());
$this->entry->ensureExists();
if (!$ignorecache) {
$cached_val = $this->REDIS->getCache($this->uid, "firstname");
if (!is_null($cached_val)) {
Expand Down Expand Up @@ -243,7 +243,7 @@ public function setLastname($lastname, $operator = null)
*/
public function getLastname($ignorecache = false)
{
\ensure($this->exists());
$this->entry->ensureExists();
if (!$ignorecache) {
$cached_val = $this->REDIS->getCache($this->uid, "lastname");
if (!is_null($cached_val)) {
Expand All @@ -266,7 +266,7 @@ public function getLastname($ignorecache = false)

public function getFullname()
{
\ensure($this->exists());
$this->entry->ensureExists();
return $this->getFirstname() . " " . $this->getLastname();
}

Expand Down Expand Up @@ -298,7 +298,7 @@ public function setMail($email, $operator = null)
*/
public function getMail($ignorecache = false)
{
\ensure($this->exists());
$this->entry->ensureExists();
if (!$ignorecache) {
$cached_val = $this->REDIS->getCache($this->uid, "mail");
if (!is_null($cached_val)) {
Expand Down Expand Up @@ -357,7 +357,7 @@ public function setSSHKeys($keys, $operator = null, $send_mail = true)
*/
public function getSSHKeys($ignorecache = false)
{
\ensure($this->exists());
$this->entry->ensureExists();
if (!$ignorecache) {
$cached_val = $this->REDIS->getCache($this->uid, "sshkeys");
if (!is_null($cached_val)) {
Expand Down Expand Up @@ -431,7 +431,7 @@ public function setLoginShell($shell, $operator = null, $send_mail = true)
*/
public function getLoginShell($ignorecache = false)
{
\ensure($this->exists());
$this->entry->ensureExists();
if (!$ignorecache) {
$cached_val = $this->REDIS->getCache($this->uid, "loginshell");
if (!is_null($cached_val)) {
Expand Down Expand Up @@ -476,7 +476,7 @@ public function setHomeDir($home, $operator = null)
*/
public function getHomeDir($ignorecache = false)
{
\ensure($this->exists());
$this->entry->ensureExists();
if (!$ignorecache) {
$cached_val = $this->REDIS->getCache($this->uid, "homedir");
if (!is_null($cached_val)) {
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/phpopenldaper