Skip to content

Commit

Permalink
Fixed error when trying to download export for a user without access …
Browse files Browse the repository at this point in the history
…to the CP

Fixes #11
  • Loading branch information
sjelfull committed Jun 6, 2019
1 parent ba565dd commit 0415c44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.1.4 - 2019-06-06
### Fixed
- Fixed error when trying to download export for a user without access to the CP

## 2.1.3 - 2019-02-02
### Added
- Added route so Beam can be used in the control panel
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "superbig/craft3-beam",
"description": "Generate CSVs and XLS files in your templates",
"type": "craft-plugin",
"version": "2.1.3",
"version": "2.1.4",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/services/BeamService.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private function writeAndRedirect($content, $filename, $mimeType)

$hashConfig = $this->hashConfig($config);
$verifyHash = Craft::$app->getSecurity()->hashData($hashConfig);
$url = UrlHelper::url('beam/download', [
$url = UrlHelper::siteUrl('beam/download', [
'hash' => $verifyHash,
]);

Expand Down

0 comments on commit 0415c44

Please sign in to comment.