Use correct variable when checking auth

This commit is contained in:
Tom Needham 2013-04-27 17:45:23 +01:00
parent 0e5eccbdbc
commit d33f6b9af6

View file

@ -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'),