diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-12-20 17:08:26 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-12-20 18:28:29 +0100 |
commit | 61ed363f820a3b25b68289ed2c03ff5e5edfed91 (patch) | |
tree | ace78508902f8d20bc3de4666d90af1b0445ed5b /apps/user_ldap/lib/user | |
parent | 3ca70d647a36144e64cbe4b90ffa97b3d9b64470 (diff) | |
download | nextcloud-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.php | 9 |
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'); + } } |