diff --git a/settings/ajax/decryptall.php b/settings/ajax/decryptall.php
index e53067931e894aabcf746b61a690508a965c08ae..ebc17aacfaa3c45fc232264c9c2a18e6ffad11d0 100644
--- a/settings/ajax/decryptall.php
+++ b/settings/ajax/decryptall.php
@@ -1,5 +1,8 @@
 <?php
 
+OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
+
 //encryption app needs to be loaded
 OC_App::loadApp('files_encryption');