Allow Own Discussion Rename
huoxin/allow-own-discussion-rename
Force allow renaming of own discussion
- Downloads
- 2
- Version control
- github.com/huoxin233/flarum-ext-allow-own-discussion-rename
Allow Own Discussion Rename
This extension is a temporary workaround for flarum/framework#3692. Code logic is taken directly from Flarum Core. It allows discussion authors to rename their own discussions even when they do not have the discussion.rename
permission specify by the tag restrictions.
[!WARNING] This extension use
forceAllow()
to override the permission from Tags policy. This is intentional but may conflict with other permission-altering extensions.Test fully before use.
Remove/disable this extension once you upgrade to a version that includes an official fix of the stated issue.
What it does
If the user is the discussion author and can reply. It will follow the permission set here:
If not it will follow to other policy such as the tag policy:
Installation
Install with composer:
composer require huoxin/allow-own-discussion-rename:"*"
Updating
composer update huoxin/allow-own-discussion-rename:"*"
php flarum migrate
php flarum cache:clear
Links
Versions
-
Version v0.0.1.
Likely works with Flarum v1.8.10.
Unlikely to work with Flarum v2.0.0-beta.3.
-
Extension created.