diff options
author | Tom Needham <tom@owncloud.com> | 2013-04-27 17:45:23 +0100 |
---|---|---|
committer | Tom Needham <tom@owncloud.com> | 2013-04-27 17:45:23 +0100 |
commit | d33f6b9af6bf4bb33e24280f93645d842f8000e2 (patch) | |
tree | 984b02c7cf3633b18f22326f3d9180362a8c92d9 /lib/api.php | |
parent | 0e5eccbdbceab74e75c031b758c829763d84377a (diff) | |
download | nextcloud-server-d33f6b9af6bf4bb33e24280f93645d842f8000e2.tar.gz nextcloud-server-d33f6b9af6bf4bb33e24280f93645d842f8000e2.zip |
Use correct variable when checking auth
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'), |