mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
no need to check if the user is logged in - this is already done in the ocs dispatcher itself
adding @return
This commit is contained in:
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']));
|
||||
|
|
|
|||
Loading…
Reference in a new issue