summaryrefslogtreecommitdiffstats
path: root/lib/private/ocs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/ocs')
-rw-r--r--lib/private/ocs/privatedata.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/private/ocs/privatedata.php b/lib/private/ocs/privatedata.php
index 0ef38f87b58..f2c6ec7fecd 100644
--- a/lib/private/ocs/privatedata.php
+++ b/lib/private/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']));