Use correct variable when checking auth

remotes/origin/stable6
Tom Needham 13 years ago
parent 0e5eccbdbc
commit d33f6b9af6
  1. 2
      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'),

Loading…
Cancel
Save