huuduy216 there's unfortunately still a lot of mystery and odd behavior in the source code of this extension. It's what happens with extensions that are this old 😅
At the very least, now information that's supposed to be hidden from view is also properly hidden from the API.
During the update I have removed some code that checked whether the user had permissions that never existed... That code probably wasn't very useful. The internal naming of the permission is completely nonsensical. There's also some incredible code duplication, which is slowly being taken care of by the latest PRs.
The frontend is still a bit messed up. The code for DiscussionPoll
isn't very readable, but I'm reluctant to introduce massive changes because first it's a lot of work, and also because I know clients have custom code and CSS for it that will break when I do 😭
The way a checkbox input is used for the vote choice also isn't a good choice with Mithril, it can lead to the checkbox not showing the correct state after an error, and there's no way to fix it without rewriting most of that component and the CSS 😬