Merge pull request #11853 from owncloud/close-session-for-trashbin

Close session for files_trashbin
This commit is contained in:
Vincent Petry 2014-11-05 12:44:10 +01:00
commit 97cbec8b8d
5 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,8 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$folder = isset($_POST['dir']) ? $_POST['dir'] : '/';
// "empty trash" command

View File

@ -6,6 +6,7 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser());

View File

@ -1,6 +1,7 @@
<?php
OCP\JSON::checkLoggedIn();
\OC::$server->getSession()->close();
// Load the files
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';

View File

@ -6,6 +6,7 @@
* See the COPYING-README file.
*/
\OC_Util::checkLoggedIn();
\OC::$server->getSession()->close();
if(!\OC_App::isEnabled('files_trashbin')){
exit;

View File

@ -2,6 +2,7 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$files = $_POST['files'];
$dir = '/';