Strange privileges behavior
-
I'm not sure exactly what triggered it, or if it's an interaction between a plugin and the upgraded version, but somewhere around 1.5.2 or 1.5.3 things got wonky on the Categories -> Privileges screen.
Clicking anything on the privs section adds another column on the right, pushing everything to the left. Has anybody else noticed this? Even a hard refresh doesn't fix it. And going back out to another Category also exhibits the problem if it's already occurred.
Notable plugins installed:
- nodebb-plugin-composer-default
- nodebb-plugin-markdown
- nodebb-plugin-mentions
- nodebb-widget-essentials
- nodebb-rewards-essentials
- nodebb-plugin-soundpack-default
- nodebb-plugin-import
- nodebb-plugin-dbsearch
- nodebb-plugin-poll
- nodebb-plugin-sanitizehtml
-
I reported something simular to this to poll plugin dev. He pushed a fix check to see if it works. Otherwise a quick removal of the poll plugin and restart + renable should be fine again.
@joykiller - Thanks for the reply. Do you think remove/re-add of the poll plugin will break existing polls? Not that I've got much choice, I think.
-
@joykiller - Thanks for the reply. Do you think remove/re-add of the poll plugin will break existing polls? Not that I've got much choice, I think.
-
Hmm.. No good. Only removing both plugins that added privs corrected the issue (calendar and poll plugins). Adding back just the poll problem reproduced the issue again.
Both plugins were "uninstalled", NodeBB restarted, then tested the privs page, then the poll plugin was installed and activated (followed by a restart). Issue returned.
-
Hmm.. No good. Only removing both plugins that added privs corrected the issue (calendar and poll plugins). Adding back just the poll problem reproduced the issue again.
Both plugins were "uninstalled", NodeBB restarted, then tested the privs page, then the poll plugin was installed and activated (followed by a restart). Issue returned.
@eric-ladner said in Strange privileges behavior:
Hmm.. No good. Only removing both plugins that added privs corrected the issue (calendar and poll plugins). Adding back just the poll problem reproduced the issue again.
Both plugins were "uninstalled", NodeBB restarted, then tested the privs page, then the poll plugin was installed and activated (followed by a restart). Issue returned.
Are you going back into permissions and doing a copy to sub forums ? If you are try manually adding each one instead.
-
@eric-ladner said in Strange privileges behavior:
Hmm.. No good. Only removing both plugins that added privs corrected the issue (calendar and poll plugins). Adding back just the poll problem reproduced the issue again.
Both plugins were "uninstalled", NodeBB restarted, then tested the privs page, then the poll plugin was installed and activated (followed by a restart). Issue returned.
Are you going back into permissions and doing a copy to sub forums ? If you are try manually adding each one instead.
@joykiller Nope. Steps to repeat are as simple as:
- goto Manage->Categories.
- Select any category (hit Edit)
- click on Privileges
- click on any single privilege displayed to toggle it.
- Every click adds another "Create Poll" column to the table and shifts everything left.
It appears after clicking what's necessary, the "copy to sub-cats" works as expected. So.. I don't think it's affecting functionality, just an annoying visual glitch that makes large scale permissions edits tedious. Everything ends up very squished after a while.
Going out and into aother category, the table remains with the same number of columns as before with all the extras. only way I've found to reset it is to "reload" NodeBB.
-
@joykiller Nope. Steps to repeat are as simple as:
- goto Manage->Categories.
- Select any category (hit Edit)
- click on Privileges
- click on any single privilege displayed to toggle it.
- Every click adds another "Create Poll" column to the table and shifts everything left.
It appears after clicking what's necessary, the "copy to sub-cats" works as expected. So.. I don't think it's affecting functionality, just an annoying visual glitch that makes large scale permissions edits tedious. Everything ends up very squished after a while.
Going out and into aother category, the table remains with the same number of columns as before with all the extras. only way I've found to reset it is to "reload" NodeBB.
@eric-ladner just to confirm, this only happens with the poll plugin?
-
@joykiller Nope. Steps to repeat are as simple as:
- goto Manage->Categories.
- Select any category (hit Edit)
- click on Privileges
- click on any single privilege displayed to toggle it.
- Every click adds another "Create Poll" column to the table and shifts everything left.
It appears after clicking what's necessary, the "copy to sub-cats" works as expected. So.. I don't think it's affecting functionality, just an annoying visual glitch that makes large scale permissions edits tedious. Everything ends up very squished after a while.
Going out and into aother category, the table remains with the same number of columns as before with all the extras. only way I've found to reset it is to "reload" NodeBB.
@eric-ladner turns out this is a bug in NodeBB! And will apparently be fixed soon.
-
This should be fixed in https://github.com/NodeBB/NodeBB/commit/e9f8cdc7f064a811ed2553a3ea4ef99f6f8f1d95