Skip to content

Commit

Permalink
Merge branch 'release/4.0.0-beta.3' into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Mar 18, 2022
2 parents f7245ed + ab560ea commit 6f14492
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Retour Changelog

## 4.0.0-beta.3 - 2022.03.18

### Fixed

* Fix registering permissions ([#224](https://github.com/nystudio107/craft-retour/issues/224))

## 4.0.0-beta.2 - 2022.03.04

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-retour",
"description": "Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website",
"type": "craft-plugin",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"keywords": [
"craftcms",
"craft-plugin",
Expand All @@ -28,7 +28,7 @@
"vlucas/phpdotenv": "^3.0"
},
"require": {
"craftcms/cms": "^4.0.0-alpha",
"craftcms/cms": "^4.0.0-beta.1",
"nystudio107/craft-plugin-vite": "^4.0.0-beta.1",
"league/csv": "^8.2 || ^9.0",
"jean85/pretty-package-versions": "^1.5 || ^2.0"
Expand Down
5 changes: 4 additions & 1 deletion src/Retour.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,10 @@ function (RegisterUserPermissionsEvent $event) {
__METHOD__
);
// Register our custom permissions
$event->permissions[Craft::t('retour', 'Retour')] = $this->customAdminCpPermissions();
$event->permissions[] = [
'heading' => Craft::t('retour', 'Retour'),
'permissions' => $this->customAdminCpPermissions(),
];
}
);
}
Expand Down

0 comments on commit 6f14492

Please sign in to comment.