Fix old-style return true in policy

This commit is contained in:
Alexander Skvortsov 2020-12-16 17:31:02 -05:00
parent 765254c4f5
commit c099c96703

View File

@ -80,7 +80,7 @@ class DiscussionPolicy extends AbstractPolicy
|| ($allowEditTags === 'reply' && $discussion->participant_count <= 1)
|| (is_numeric($allowEditTags) && $discussion->created_at->diffInMinutes(new Carbon) < $allowEditTags)
) {
return true;
return $this->allow();
}
}
}