projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12167: Fix impossible fixture.
[arvados.git]
/
services
/
api
/
script
/
get_anonymous_user_token.rb
diff --git
a/services/api/script/get_anonymous_user_token.rb
b/services/api/script/get_anonymous_user_token.rb
index 96619ef364fb4e1e473011b454070073292ea2e8..93c8318f0e53013e3a2e192466094d0905173baf 100755
(executable)
--- a/
services/api/script/get_anonymous_user_token.rb
+++ b/
services/api/script/get_anonymous_user_token.rb
@@
-30,7
+30,7
@@
act_as_system_user
def create_api_client_auth(supplied_token=nil)
def create_api_client_auth(supplied_token=nil)
- # If token is supplied,
verify that it indeed is a superuser token
+ # If token is supplied,
see if it exists
if supplied_token
api_client_auth = ApiClientAuthorization.
where(api_token: supplied_token).
if supplied_token
api_client_auth = ApiClientAuthorization.
where(api_token: supplied_token).