summaryrefslogtreecommitdiffstats
path: root/lib/private/ocs
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-31 10:21:17 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-31 10:21:17 +0100
commit64d0b0d18489e3cbacdfd826c84bdf16f8164268 (patch)
tree062262510e38a90d603fdbf6ee49180d82bf5c2a /lib/private/ocs
parent8362afa94dbfd0c5eda66868270b4e06ca4382d9 (diff)
downloadnextcloud-server-64d0b0d18489e3cbacdfd826c84bdf16f8164268.tar.gz
nextcloud-server-64d0b0d18489e3cbacdfd826c84bdf16f8164268.zip
PHPDoc comment updated - checkLoggedIn() removed
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']));