[Pkg-owncloud-commits] [owncloud] 28/66: PHPDoc comment updated - checkLoggedIn() removed

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 22:49:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.

commit 42b7dd827b7f44dfd807f30efcd17cb500e49cb8
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Thu Oct 31 10:21:17 2013 +0100

    PHPDoc comment updated - checkLoggedIn() removed
---
 lib/ocs/privatedata.php | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/lib/ocs/privatedata.php b/lib/ocs/privatedata.php
index 0ef38f8..f2c6ec7 100644
--- a/lib/ocs/privatedata.php
+++ b/lib/ocs/privatedata.php
@@ -58,10 +58,11 @@ class OC_OCS_Privatedata {
 	}
 
 	/**
-	* set a key
-	* test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/setattribute/testy/123  --data "value=foobar"
-	* @param array $parameters The OCS parameter
-	*/
+	 * set a key
+	 * test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/setattribute/testy/123  --data "value=foobar"
+	 * @param array $parameters The OCS parameter
+	 * @return \OC_OCS_Result
+	 */
 	public static function set($parameters) {
 		$user = OC_User::getUser();
 		$app = addslashes(strip_tags($parameters['app']));
@@ -86,12 +87,12 @@ class OC_OCS_Privatedata {
 	}
 
 	/**
-	* delete a key
-	* test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/deleteattribute/testy/123 --data "post=1"
-	* @param array $parameters The OCS parameter
-	*/
+	 * delete a key
+	 * test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/deleteattribute/testy/123 --data "post=1"
+	 * @param array $parameters The OCS parameter
+	 * @return \OC_OCS_Result
+	 */
 	public static function delete($parameters) {
-		OC_Util::checkLoggedIn();
 		$user = OC_User::getUser();
 		$app = addslashes(strip_tags($parameters['app']));
 		$key = addslashes(strip_tags($parameters['key']));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list