-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: Insufficient access to Taxonomy Block on Dashboard #5198
Comments
To test - create a TEST EDITOR account (Maybe use same password as admin). Give various taxonomy permissions to editor and see if the Dashboard block behaves as expected. The following permissions should give access to the following on the dashboard Administer vocabularies and terms
Tags: Create terms
Tags: Edit terms
Tags: Delete terms
No Permissions
|
I've updated the code in the PR based on some feedback from @klonos, but it still works the same. |
Since this relies on a set of changes that went in only in 1.x, I've set the milestone to 1.20. |
@klonos - I've made requested changes to PR. Take a look again if you get the chance. Thanks. |
I've tested the PR sandbox site and got results as expected - described in #5198 (comment). I've also created a new vocabulary and played around with different permission combinations. Everything worked as expected! |
Sorry @stpaultim and @olafgrabienski there are a few issues with the approach in this PR, so I'm gonna move this back to "needs work". Too many things to list now, so I'll file an alternative PR shortly... |
@klonos - I look forward to seeing your alternative. ;-) |
OK, here's the PR: backdrop/backdrop#3737
|
@klonos - Looks like there were issues with the code before the PR. ;-) Thanks for stepping in and cleaning this one up. |
Yes @stpaultim, preexisting issues + we have not thought of the taxonomy Dashboard block when implementing #382 ...the main thing was (re)using |
I closed my PR in favor of the one by @klonos and reviewed by @jenlampton. |
Rebased after the recent core commits that fix the random failures, and tests are green! 🎉 Thanks @indigoxela and @quicksketch 🙏🏼 |
Looks great! Thanks @stpaultim for filing and for the initial PR, and @klonos for doing some of the clean up work in your alternative PR. Thanks to @olafgrabienski and @jenlampton for testing and code review. I've merged the backdrop/backdrop#3737 PR in backdrop/backdrop#3737 for 1.x so it will be included in 1.20. |
Description of the bug
With the addition of #382, we need to refine access to the "Taxonomy" block on the dashboard for roles to create or delete terms.
Currently, only those with permission to administer vocabularies or edit terms have access to this block, when this block is actually useful for anyone with permission to do anything with taxonomies. This was not the case prior to #382.
ALSO - user with "Administer Terms and Vocabularies" permission had a link to "configure" but it took them to the "list terms" page instead of the "configure" page.
Steps To Reproduce
To reproduce the behavior:
Actual behavior
Even with edit and delete terms, these are the only options you get with the block.
Expected behavior
Since the only two links that are provided by this block directly are "List Terms" and "Add New Terms", this block is useful to editors with any taxonomy permission. The ability to see available taxonomies and list the terms is valuable.
@olafgrabienski and @herbdool
The text was updated successfully, but these errors were encountered: