[ARVADOS] updated: c0c7bbed0ccd2f967900215db745b7f49f7bd6b1
git at public.curoverse.com
git at public.curoverse.com
Tue May 20 15:00:48 EDT 2014
Summary of changes:
services/api/app/models/api_client_authorization.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via c0c7bbed0ccd2f967900215db745b7f49f7bd6b1 (commit)
from cb0944391d311c7e0c0180941c5fa60a60395e1e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit c0c7bbed0ccd2f967900215db745b7f49f7bd6b1
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Tue May 20 15:00:42 2014 -0400
2764: Fixed scopes_allow_request to use request.request_method (the effective
HTTP method) instead of request.method (the actual HTTP method) because
workbench uses POST even for GET.
diff --git a/services/api/app/models/api_client_authorization.rb b/services/api/app/models/api_client_authorization.rb
index 2488d83..82dd0ec 100644
--- a/services/api/app/models/api_client_authorization.rb
+++ b/services/api/app/models/api_client_authorization.rb
@@ -71,7 +71,7 @@ class ApiClientAuthorization < ArvadosModel
end
def scopes_allow_request?(request)
- scopes_allow? [request.method, request.path].join(' ')
+ scopes_allow? [request.request_method, request.path].join(' ')
end
def logged_attributes
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list