Skip to content

Commit

Permalink
FIX: Remove auth token from project portfolio url
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed May 7, 2021
1 parent 0ef31df commit 39b4f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/models/portfolion-submission.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ angular.module("doubtfire.api.models.portfolio-submission", [
resource

PortfolioSubmission.getPortfolioUrl = (project, asAttachment = false) ->
url = "#{DoubtfireConstants.API_URL}/submission/project/#{project.project_id}/portfolio?auth_token=#{currentUser.authenticationToken}"
url += "&as_attachment=true" if asAttachment
url = "#{DoubtfireConstants.API_URL}/submission/project/#{project.project_id}/portfolio"
url += "?as_attachment=true" if asAttachment
url

PortfolioSubmission
Expand Down

0 comments on commit 39b4f2e

Please sign in to comment.