summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/user
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-12-20 17:08:26 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-12-20 18:28:29 +0100
commit61ed363f820a3b25b68289ed2c03ff5e5edfed91 (patch)
treeace78508902f8d20bc3de4666d90af1b0445ed5b /apps/user_ldap/lib/user
parent3ca70d647a36144e64cbe4b90ffa97b3d9b64470 (diff)
downloadnextcloud-server-61ed363f820a3b25b68289ed2c03ff5e5edfed91.tar.gz
nextcloud-server-61ed363f820a3b25b68289ed2c03ff5e5edfed91.zip
planned refactorings for OC 8
Diffstat (limited to 'apps/user_ldap/lib/user')
-rw-r--r--apps/user_ldap/lib/user/deletedusersindex.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/user/deletedusersindex.php b/apps/user_ldap/lib/user/deletedusersindex.php
index 62abe2e10de..67585530279 100644
--- a/apps/user_ldap/lib/user/deletedusersindex.php
+++ b/apps/user_ldap/lib/user/deletedusersindex.php
@@ -69,6 +69,7 @@ class DeletedUsersIndex {
foreach($deletedUsers as $user) {
$userObjects[] = new OfflineUser($user, $this->config, $this->db, $this->mapping);
}
+ $this->deletedUsers = $userObjects;
return $this->deletedUsers;
}
@@ -97,4 +98,12 @@ class DeletedUsersIndex {
}
return false;
}
+
+ /**
+ * marks a user as deleted
+ * @param string ocName
+ */
+ public function markUser($ocName) {
+ $this->config->setUserValue($ocName, 'user_ldap', 'isDeleted', '1');
+ }
}