Skip to content

Commit

Permalink
Merge branch 'deployment-portage' into fix/cannot_save_plan
Browse files Browse the repository at this point in the history
  • Loading branch information
lagoan authored Mar 28, 2023
2 parents cac2f25 + 05c6a80 commit 35a70dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

- Resolved problem with updating plans [#333](https://github.com/portagenetwork/roadmap/issues/333)

## [3.1.0+portage-3.1.1]
## [3.1.0+portage-3.1.1] - 2023-02-24

### Fixed
### Fixed

- Fixed 500 error when admins try to downloading [#328](https://github.com/portagenetwork/roadmap/issues/328)

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/plan_exports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def file_name
end

def publicly_authorized?
PublicPagePolicy.new(@plan, current_user).plan_organisationally_exportable? ||
PublicPagePolicy.new(@plan).plan_export?
PublicPagePolicy.new(current_user, @plan).plan_organisationally_exportable? ||
PublicPagePolicy.new(current_user, @plan).plan_export?
end

def privately_authorized?
Expand Down

0 comments on commit 35a70dd

Please sign in to comment.