Include updating of scoped tag permissions #2941
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
**Fixes #2924 **
Changes proposed in this pull request:
The rename
viewDiscussions
migration introduced for Flarum 1.0 does not take tag scoped permissions into accounthttps://github.com/flarum/core/blob/e92c267cdec46266b633f71c2f41040731cdaf39/migrations/2021_05_10_000000_rename_permissions.php#L17
This fixes the migration to additionally rename
tagX.viewDiscussions
totagX.viewForum
As @clarkwinkelmann suggestion, fixing the current migration rather than introducing a new one so that this will only run for those forums which are yet to update to 1.0
Tested locally on an upgrade from core
beta.16
to1.0.3
Reviewers should focus on:
Scoped tag permissions are included in the rename of permission
Confirmed
composer test
).