summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-09 16:45:53 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-09 16:45:53 +0100
commitb1031c63557cdf93601b2749611e14ab3c77c28e (patch)
tree3dd0e4d3795c1df63bded2f02e8d3671dce80ac1 /apps/files_versions
parentcd79b0279aef7b8ff4f4583065fa4fea18f9b668 (diff)
parent1cfcec86841d6336b71e04111f65db54792885fb (diff)
downloadnextcloud-server-b1031c63557cdf93601b2749611e14ab3c77c28e.tar.gz
nextcloud-server-b1031c63557cdf93601b2749611e14ab3c77c28e.zip
Merge pull request #13188 from owncloud/add-check-if-user-is-logged-in
Add check if user is logged-in
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/ajax/getVersions.php2
-rw-r--r--apps/files_versions/ajax/rollbackVersion.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php
index 4cc1c428898..80786433e7a 100644
--- a/apps/files_versions/ajax/getVersions.php
+++ b/apps/files_versions/ajax/getVersions.php
@@ -1,4 +1,6 @@
<?php
+OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
OCP\JSON::checkAppEnabled('files_versions');
$source = $_GET['source'];
diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php
index e6133507738..326d8db74f7 100644
--- a/apps/files_versions/ajax/rollbackVersion.php
+++ b/apps/files_versions/ajax/rollbackVersion.php
@@ -1,5 +1,6 @@
<?php
+OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('files_versions');
OCP\JSON::callCheck();