no need to check if the user is logged in - this is already done in the ocs dispatcher itself

adding @return
remotes/origin/stable6
Thomas Müller 2013-10-31 09:58:18 +07:00
parent 64bfd21ccd
commit b2929de0a7
1 changed files with 6 additions and 6 deletions

@ -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']));