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
Branches
No related tags found
No related merge requests found
...@@ -30,9 +30,9 @@ class OC_OCS_Privatedata { ...@@ -30,9 +30,9 @@ class OC_OCS_Privatedata {
* 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.
Please register or to comment