From 75a871ecd7c957d9e28c02fab35887db2b208002 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Mon, 17 Dec 2012 16:32:09 +0100 Subject: expire all operation no longer needed; delete oldest versions if limit of empty space is reached --- apps/files_versions/ajax/expireAll.php | 44 ---------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 apps/files_versions/ajax/expireAll.php (limited to 'apps/files_versions/ajax') diff --git a/apps/files_versions/ajax/expireAll.php b/apps/files_versions/ajax/expireAll.php deleted file mode 100644 index 5c95885ffbd..00000000000 --- a/apps/files_versions/ajax/expireAll.php +++ /dev/null @@ -1,44 +0,0 @@ -. - * - */ - -// TODO: Allow admins to expire versions of any user -// TODO: Provide feedback as to how many versions were deleted - -// Check user and app status -OCP\JSON::checkLoggedIn(); -OCP\App::checkAppEnabled('files_versions'); -OCP\JSON::callCheck(); - -$versions = new OCA_Versions\Storage(); - -if( $versions->expireAll() ) { - - OCP\JSON::success(); - die(); - -} else { - - OCP\JSON::error(); - die(); - -} \ No newline at end of file -- cgit v1.2.3