Skip to content

Commit

Permalink
fix(no_force_sign): parse truthiness from no_force_sign param, rather…
Browse files Browse the repository at this point in the history
… than check if exists
  • Loading branch information
mcannalte committed Feb 12, 2021
1 parent d9acf1f commit aa5584d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def get_signed_url_for_file(action, file_id, file_name=None):
# default to signing the url even if it's a public object
# this will work so long as we're provided a user token
force_signed_url = True
if flask.request.args.get("no_force_sign"):
no_force_sign_param = flask.request.args.get("no_force_sign")
if no_force_sign_param and no_force_sign_param.lower() == "true":
force_signed_url = False

indexed_file = IndexedFile(file_id)
Expand Down

0 comments on commit aa5584d

Please sign in to comment.