Skip to content
Snippets Groups Projects
Commit d33f6b9a authored by Tom Needham's avatar Tom Needham
Browse files

Use correct variable when checking auth

parent 0e5eccbd
Branches
No related tags found
Loading
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment