diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php index 4cc1c4288985760429695e0ecdb5cc725b15c96d..80786433e7a6b1f5ef292f858f3daac2f7edd9ed 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 e6133507738fce29a1428b35026d1ed1e7017c5b..326d8db74f7a63e42f1768931736c97e785bdb5e 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();