| @@ 157-164 (lines=8) @@ | ||
| 154 | $responses = array(); |
|
| 155 | foreach(self::$actions[$name] as $action) { |
|
| 156 | // Check authentication and availability |
|
| 157 | if(!self::isAuthorised($action)) { |
|
| 158 | $responses[] = array( |
|
| 159 | 'app' => $action['app'], |
|
| 160 | 'response' => new OC_OCS_Result(null, API::RESPOND_UNAUTHORISED, 'Unauthorised'), |
|
| 161 | 'shipped' => OC_App::isShipped($action['app']), |
|
| 162 | ); |
|
| 163 | continue; |
|
| 164 | } |
|
| 165 | if(!is_callable($action['action'])) { |
|
| 166 | $responses[] = array( |
|
| 167 | 'app' => $action['app'], |
|
| @@ 165-172 (lines=8) @@ | ||
| 162 | ); |
|
| 163 | continue; |
|
| 164 | } |
|
| 165 | if(!is_callable($action['action'])) { |
|
| 166 | $responses[] = array( |
|
| 167 | 'app' => $action['app'], |
|
| 168 | 'response' => new OC_OCS_Result(null, API::RESPOND_NOT_FOUND, 'Api method not found'), |
|
| 169 | 'shipped' => OC_App::isShipped($action['app']), |
|
| 170 | ); |
|
| 171 | continue; |
|
| 172 | } |
|
| 173 | // Run the action |
|
| 174 | $responses[] = array( |
|
| 175 | 'app' => $action['app'], |
|