8000 Fixed vulnerability in DMPTool by jupiter007 · Pull Request #803 · CDLUC3/dmptool · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## DMPTool Releases

### v5.63
- Fixed vulnerability in contributors controller and research output controller [#802]

### v5.62
- Fix bug that was using old invalid env variable to set the mailer domains. Switched to use the AnywayConfig value instead
- Removed the old host rebinding config from environment files because the ENV variable was always nil
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/contributors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ class ContributorsController < ApplicationController

# GET /plans/:plan_id/contributors
def index
authorize @plan
authorize @plan, :show?
@contributors = @plan.contributors
end

# GET /plans/:plan_id/contributors/new
def new
authorize @plan
authorize @plan, :edit?
default_org = (@plan.org.presence || current_user.org)
@contributor = Contributor.new(plan: @plan, org: default_org)
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/paginable/research_outputs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ResearchOutputsController < ApplicationController
# GET /paginable/plans/:plan_id/research_outputs
def index
@plan = Plan.find_by(id: params[:plan_id])
authorize @plan
authorize @plan, :show?
paginable_renderise(
partial: 'index',
scope: ResearchOutput.where(plan_id: @plan.id),
Expand Down
Loading
0