From b2929de0a73a131735e051bf620f23b9bd055d2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Thu, 31 Oct 2013 09:58:18 +0100
Subject: [PATCH] no need to check if the user is logged in - this is already
 done in the ocs dispatcher itself adding @return

---
 lib/private/ocs/privatedata.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/private/ocs/privatedata.php b/lib/private/ocs/privatedata.php
index b489cd0fbb3..e528dfbcb74 100644
--- a/lib/private/ocs/privatedata.php
+++ b/lib/private/ocs/privatedata.php
@@ -26,13 +26,13 @@
 class OC_OCS_Privatedata {
 
 	/**
-	* read keys
-	* test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/getattribute/testy/123
-	* test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/getattribute/testy
-	* @param array $parameters The OCS parameter
-	*/
+	 * read keys
+	 * test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/getattribute/testy/123
+	 * test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/getattribute/testy
+	 * @param array $parameters The OCS parameter
+	 * @return \OC_OCS_Result
+	 */
 	public static function get($parameters) {
-		OC_Util::checkLoggedIn();
 		$user = OC_User::getUser();
 		$app = addslashes(strip_tags($parameters['app']));
 		$key = addslashes(strip_tags($parameters['key']));
-- 
GitLab