Skip to content
Snippets Groups Projects
Commit b2929de0 authored by Thomas Müller's avatar Thomas Müller
Browse files

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

adding @return
parent 64bfd21c
No related branches found
No related tags found
Loading
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
class OC_OCS_Privatedata { class OC_OCS_Privatedata {
/** /**
* read keys * 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/123
* test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/getattribute/testy * test: curl http://login:passwd@oc/core/ocs/v1.php/privatedata/getattribute/testy
* @param array $parameters The OCS parameter * @param array $parameters The OCS parameter
*/ * @return \OC_OCS_Result
*/
public static function get($parameters) { public static function get($parameters) {
OC_Util::checkLoggedIn();
$user = OC_User::getUser(); $user = OC_User::getUser();
$app = addslashes(strip_tags($parameters['app'])); $app = addslashes(strip_tags($parameters['app']));
$key = addslashes(strip_tags($parameters['key'])); $key = addslashes(strip_tags($parameters['key']));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment