mirror of
https://github.com/flarum/core.git
synced 2025-08-15 04:44:08 +02:00
Fix Editing Discussion Tags Permission (#95)
This commit is contained in:
@@ -59,6 +59,10 @@ class SaveTagsToDatabase
|
||||
|
||||
// TODO: clean up, prevent discussion from being created without tags
|
||||
if (isset($event->data['relationships']['tags']['data'])) {
|
||||
if ($discussion->exists) {
|
||||
$actor->assertCan('tag', $discussion);
|
||||
}
|
||||
|
||||
$linkage = (array) $event->data['relationships']['tags']['data'];
|
||||
|
||||
$newTagIds = [];
|
||||
|
Reference in New Issue
Block a user