]> source.dussan.org Git - nextcloud-server.git/commitdiff
no need to check if the user is logged in - this is already done in the ocs dispatche...
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 31 Oct 2013 08:58:18 +0000 (09:58 +0100)
committertomneedham <tom@owncloud.com>
Tue, 18 Feb 2014 17:19:27 +0000 (17:19 +0000)
adding @return

lib/ocs/privatedata.php

index b489cd0fbb3945e8c115f83a49d6103c978bf654..e528dfbcb7443a1c0315234689ff085ac49193e3 100644 (file)
 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']));