diff --git a/extensions/tags/src/Listener/SaveTagsToDatabase.php b/extensions/tags/src/Listener/SaveTagsToDatabase.php index 2d16fb5f8..19e271db9 100755 --- a/extensions/tags/src/Listener/SaveTagsToDatabase.php +++ b/extensions/tags/src/Listener/SaveTagsToDatabase.php @@ -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 = [];