discourse/plugins/discourse-post-voting
Régis Hanol e171530e14
FIX: post voting comments editing UX (#35108)
was showing up inconditionnaly even if you didn't have the permissions
to edit other people's comments.

This was only a UX issue as the server is doing the correct check.

The issue was the `hasPermission` method which wasn't a getter so it
wasn't checked for all the instances of the post comments but rather
once.

Also added some acceptance tests to ensure we don't regress.

Internal ref - t/163347
2025-10-01 11:31:19 +02:00
..
app FEATURE: Add site setting to allow comments to be disabled in discourse-post-voting plugin (#33775) 2025-07-23 11:03:01 +08:00
assets FIX: post voting comments editing UX (#35108) 2025-10-01 11:31:19 +02:00
config Update translations (#35065) 2025-09-30 16:06:14 +02:00
db/migrate
extensions
lib/post_voting DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
spec DEV: Fix random typos (#33839) 2025-07-24 22:04:13 +02:00
test/javascripts/acceptance FIX: post voting comments editing UX (#35108) 2025-10-01 11:31:19 +02:00
plugin.rb DEV: Remove obsolete register_svg_icon checks (#35067) 2025-09-30 15:51:44 +02:00
README.md

Discourse Post Voting

Discourse Post Voting allows the creation of topics with votable posts.

image

Please refer to https://meta.discourse.org/t/227808 for more info!

Contributions

Special thanks to Pavilion for building https://github.com/paviliondev/discourse-question-answer which this plugin took inspirations from.