-
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
[D8][UX] Add Better Taxonomy permissions #382
[D8][UX] Add Better Taxonomy permissions #382
Comments
I was a bit baffled looking at the Taxonomy permissions recently for this exact reason (related to your term cancel links at #371). This seems like a good set of changes to me. Could we review exactly what changes we want to port over from Taxonomy access fix module, or if there's anything we don't want from it? |
Ok, from what I can see by reading through the code, TAF does the following:
|
Wow, this all sounds like great improvements. A lot of these sounds border-line bugs:
😮 All of these changes sound good to me. It has me a little worried that some of these updates may make converting the term listings to views more difficult, but I think built-in draggable views may be a ways off yet, so converting the taxonomy term listing pages isn't going to happen any time soon anyway. I'd like to see tests for each of these things added. Different behaviors for different levels of permissions is one of those things that's hard to reproduce accurately and reasonably easy to test. |
My PR addresses pretty much all this:
|
Oh, BTW, no tests as I'm not familiar with them... |
That's perfectly fine, as we're renaming permissions as part of the CMI conversion for Taxonomy Terms, since auto-increment IDs aren't compatible with config files. The work over in #174 does this conversion and uses machine names everywhere.
This PR overall looks great, but really can't add this expansion of permission granularity without tests to ensure that the permissions work as expected for the different roles with different permission levels. The existing |
I love this feature and the PR is close. For now I've closed it as it needs more work, but let's pick this up again if we can gets tests on the new functionality. The last PR was at backdrop/backdrop#508. |
edit: whoops, changing milestone on wrong issue. |
...part of #378 |
The d.org project page for https://www.drupal.org/project/taxonomy_access_fix links to another related, very useful module: https://www.drupal.org/project/taxonomy_autocomplete_permission (less than 100 lines of code).
Now with #38 implemented, it would be a great addition to merge the functionality of these modules. |
Proposing milestone to be set for 1.13 |
Code in newest PR looks great - thanks for resolving the conflicts @docwilmot :) I took it for another spin in the sandbox, but after a fresh install, the I'm doing more testing, but wanted to note this here right away. |
Ah, I see, the editor role previously had For existing sites, I recommend that we add the For new installs, I'd prefer that we remove the existing permissions and add only |
Maybe check first to make sure the existing Editor role still has "Administer taxonomy" permissions? Should we also check if any other roles have been given that permission and do the same for them? (#382 (comment))
Sounds good to me. |
I agree with Jen's suggestions for permissions. I was going to delay the discussion of default permissions to a follow-up issue, but if you are able to get those change in here too, great. |
Done. |
By @BWPanda, @docwilmot, @quicksketch, @jenlampton, @stpaultim, @klonos, @herbdool, @olafgrabienski & @laryn.
I've merged backdrop/backdrop#3716 into 1.x. Thanks to @docwilmot, @quicksketch, @jenlampton, @stpaultim, @klonos, @herbdool, @olafgrabienski & @laryn for your work on this! |
And thanks to @bwpanda for getting the whole issue rolling way back in 2014! 😉 |
@laryn or @BWPanda follow-up PR with some small fixes: backdrop/backdrop#3718 |
Since discovering it 8 months ago, I have been installing the Taxonomy access fix module on all my sites. It is a great, simple module that fixes the lacking Taxonomy permissions in Drupal core. I recommend implementing it (or something similar) in Backdrop.
Basically, it adds additional permissions for accessing Vocabulary pages and adding new terms (currently you have to give users the broader 'Administer vocabularies and terms' permission to do this).
There is an issue for doing the same thing in Drupal 8 core here: https://www.drupal.org/node/1848686 (which might be helpful if we decide to do the same).
PR by @BWPanda: backdrop/backdrop#508 (merge conflicts)PR by @herbdool backdrop/backdrop#3319PR by @docwilmot backdrop/backdrop#3716
The text was updated successfully, but these errors were encountered: