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.
The "Edit metatags" permission isn't named correctly. Users without this permission can still edit content metatags, they just can't edit path-based metatags.
Please rename this permission to "Edit path-based metatags".
Comment | File | Size | Author |
---|---|---|---|
#1 | metatags_quick-edit-permission-1247310-2.patch | 735 bytes | Andrew Schulman |
Comments
Comment #1
Andrew Schulman CreditAttribution: Andrew Schulman commentedInstead of renaming this permission, why not fix the module instead so that it applies to editing bundle/entity meta tags as well. The attached patch does this. Users without the "Edit meta tags" permission won't be able to view or edit the meta tags in node/user/etc. editing forms.
Comment #2
Andrew Schulman CreditAttribution: Andrew Schulman commentedComment #3
valthebaldI think it's more consistent to implement hook_field_access, as patch at #2 suggests.
Any other opinion? (I will let several days for possible objections, then commit the patch).
Thanks!
Comment #4
valthebaldcommitted to 7.x-2.x after getting on objections