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.

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

manuel.adan created an issue. See original summary.

jphelan’s picture

Good idea, I'll look into what's involved with doing that.

bedlam’s picture

I had the same issue. I've modified the module and class files to make more general use of entity bundles rather than just nodes.

bedlam’s picture

Oops. 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.

JeroenT’s picture

Status: Active » Needs work

JeroenT’s picture

I 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.

JeroenT’s picture

JeroenT’s picture

Status: Needs work » Needs review

Upgrade path and test coverage was added.

JeroenT’s picture

Status: Needs review » Fixed

  • JeroenT committed 789b710 on 8.x-1.x
    Issue #2789523 by JeroenT, bedlam: url alias permission per entity...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.