Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
taxonomy.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2011 at 03:10 UTC
Updated:
29 Jul 2014 at 20:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
damienmckennaHere are patches for D7 and D8 to replace the two permissions use of $vocabulary->vid with $vocabulary->name. They need hook_update_N() implementations to update existing permissions, though.
Comment #2
janusman commentedI might be wrong but...
Won't permissions be lost if someone decides to rename a vocabulary?
IIUC $vocabulary->name is a user-facing label, not a UUID =) Permissions should have unique IDs of the things they.. uh... allow.
Comment #3
damienmckennaCorrected the patches to use $vocabulary->machine_name, not $vocabulary->name.
Comment #4
xjmDuplicate of #995156: Use vocabulary machine name for permissions.
Comment #4.0
xjmThe correct field that should be used is $vocabulary->machine_name, not $vocabulary->name.