mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Make discussion edit permission specific to renaming
This commit is contained in:
@@ -67,7 +67,7 @@ export default function(app) {
|
||||
items.add('separator', Separator.component());
|
||||
}
|
||||
|
||||
if (this.canEdit()) {
|
||||
if (this.canRename()) {
|
||||
items.add('rename', ActionButton.component({ icon: 'pencil', label: 'Rename', onclick: this.renameAction.bind(this) }));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user