diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c5b806503..c696516c8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/app/controllers/plan_exports_controller.rb b/app/controllers/plan_exports_controller.rb index aa9e18d37a..dc24e04b08 100644 --- a/app/controllers/plan_exports_controller.rb +++ b/app/controllers/plan_exports_controller.rb @@ -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?