mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Fix Editing Discussion Tags Permission (#95)
This commit is contained in:
parent
80f6e9c808
commit
e787048af1
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user