Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need the functionality this module brings, but for taxonomy vocabularies. May be useful provide url alias permission per entity bundle rather than content type.
Comment | File | Size | Author |
---|
Issue fork url_alias_permissions-2789523
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jphelan CreditAttribution: jphelan commentedGood idea, I'll look into what's involved with doing that.
Comment #3
bedlamI had the same issue. I've modified the module and class files to make more general use of entity bundles rather than just nodes.
Comment #4
bedlamOops. Double-checking revals that the patch above does not affect taxonomy terms, though it does work for arbitrary entities.
Looks like taxonomy terms are not quite the same kind of animal. I'll try to take a look at this again next week.
Comment #5
JeroenTComment #7
JeroenTI think I got a working version in the MR. This patch also add support for entities that don't support bundles.
I also renamed the permission to include the entity type so when you have a node type named "category" and a taxonomy term named "category" this will result in 1 permission. Including the entity type in the permission will create 2 permissions.
I still need to add test coverage for entities without bundles and since I renamed the permissions, this will need an upgrade path.
Comment #8
JeroenTComment #9
JeroenTUpgrade path and test coverage was added.
Comment #10
JeroenT