From: Tom Needham Date: Sat, 27 Apr 2013 16:45:23 +0000 (+0100) Subject: Use correct variable when checking auth X-Git-Tag: v6.0.0alpha2~831^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d33f6b9af6bf4bb33e24280f93645d842f8000e2;p=nextcloud-server.git Use correct variable when checking auth --- diff --git a/lib/api.php b/lib/api.php index 8d6bbb7cc09..be30894b753 100644 --- a/lib/api.php +++ b/lib/api.php @@ -89,7 +89,7 @@ class OC_API { $responses = array(); foreach(self::$actions[$name] as $action) { // Check authentication and availability - if(!self::isAuthorised(self::$actions[$name])) { + if(!self::isAuthorised($action)) { $responses[] = array( 'app' => $action['app'], 'response' => new OC_OCS_Result(null, OC_API::RESPOND_UNAUTHORISED, 'Unauthorised'),