Question and Answer Plugin - Permissions
-
Vivaldi probably just modified the plugin. Currently it checks
privileges.topics.canEdit
, which is equal toprivileges.topics.isOwnerOrAdminOrMod
- so it allows administrators, moderators and original authors of the topic to set as answered.All one needs to do then is to change it to
privileges.topics.isAdminOrMod
.
Relevant lines:- https://github.com/NodeBB/nodebb-plugin-question-and-answer/blob/b1198675b7f4b6db6eac8c78ca191b3786162252/library.js#L210
- https://github.com/NodeBB/nodebb-plugin-question-and-answer/blob/b1198675b7f4b6db6eac8c78ca191b3786162252/library.js#L324
- https://github.com/NodeBB/nodebb-plugin-question-and-answer/blob/b1198675b7f4b6db6eac8c78ca191b3786162252/library.js#L333
EDIT: I created a PR that would simply add a setting to ACP that does this: https://github.com/NodeBB/nodebb-plugin-question-and-answer/pull/92
If you want to use it even before it's merged you can run
npm install github:oplik0/nodebb-plugin-question-and-answer#only-allow-admins-and-mods
to install that version -
Thank you!
@oplik0 , @baris I'm administrator of a NodeBB Community not in my server so I don't have access to SSH.I have access to the admin Dashboard of NodeBB.
If I go under plugin I see the latest version of nodebb-plugin-question-and-answer installed is 0.12.10There is a way to get latest version just without SSH with the NodeBB plugin admin section?
Thanks for the help!
-
@ocisp87 It can take a bit until NodeBB sees the updated version, unfortunately. From looking at two of my instances it seems it should be available now though.
-
@oplik0 thanks for the reply but no updates.
If you look at my screenshot say that installed version is 0.12.10 this seems to be old. Looking at the release on GitHub seems this is a version of 7 november 2021 so I'm asking why I see this and cannot see most recent one. -
@baris Not an updated version. I will ask to the developers to update NodeBB and will see if this resolve the issue. I still see no updates of plugin at the moment.
I will try to update you when they update the NodeBB version.
Thanks. -
-
-
-