diff options
Diffstat (limited to 'apps/files_versioning')
-rw-r--r-- | apps/files_versioning/ajax/gethead.php | 2 | ||||
-rw-r--r-- | apps/files_versioning/ajax/sethead.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versioning/ajax/gethead.php b/apps/files_versioning/ajax/gethead.php index cc93b7a1d17..a0bfe77db51 100644 --- a/apps/files_versioning/ajax/gethead.php +++ b/apps/files_versioning/ajax/gethead.php @@ -4,7 +4,7 @@ * This file is licensed under the Affero General Public License version 3 or * later. */ -require_once('../../../lib/base.php'); + OC_JSON::checkLoggedIn(); // Fetch current commit (or HEAD if not yet set) diff --git a/apps/files_versioning/ajax/sethead.php b/apps/files_versioning/ajax/sethead.php index d1b2df9b00f..dd8b924b118 100644 --- a/apps/files_versioning/ajax/sethead.php +++ b/apps/files_versioning/ajax/sethead.php @@ -4,7 +4,7 @@ * This file is licensed under the Affero General Public License version 3 or * later. */ -require_once('../../../lib/base.php'); + OC_JSON::checkLoggedIn(); if(isset($_POST["file_versioning_head"])){ OC_Preferences::setValue(OC_User::getUser(), 'files_versioning', 'head', $_POST["file_versioning_head"]); |