From 3bcd10a97c11b108a65e1c8c14fdd4e782c21302 Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Sat, 27 Apr 2013 17:45:23 +0100 Subject: [PATCH] Use correct variable when checking auth --- lib/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), -- 2.39.5