Skip to content

Commit

Permalink
Issue #1134692 tedbow services_auth_invoke is never called for Authen…
Browse files Browse the repository at this point in the history
…ication plugin that has no settings
  • Loading branch information
Kyle Browning authored and Kyle Browning committed Apr 21, 2011
1 parent d31e9ea commit 50d7d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services.runtime.inc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function services_controller_execute($controller, $args = array(), $auth_args =
$endpoint = services_endpoint_load($endpoint_name);

foreach ($endpoint->authentication as $auth_module => $settings) {
if ($settings && $auth_error = services_auth_invoke($auth_module, 'authenticate_call', $settings, $controller, $args, $auth_args)) {
if (isset($settings) && $auth_error = services_auth_invoke($auth_module, 'authenticate_call', $settings, $controller, $args, $auth_args)) {
return services_error($auth_error, 401);
}
}
Expand Down

0 comments on commit 50d7d5a

Please sign in to comment.