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.
This is a convenience enhancement.
When managing profile types, especially when creating a new type, it's important to set the permissions for profile types correctly.
This patch adds an action button to the Profile Types admin page which opens the User Permissions admin page, filtered for Profile Type permissions only.
Comment | File | Size | Author |
---|---|---|---|
#4 | profile2-permissions_button-3072211-4.patch | 1004 bytes | RickJ |
| |||
#3 | without_patch.png | 33.13 KB | krina.addweb |
#3 | with_patch.png | 33.33 KB | krina.addweb |
Comments
Comment #2
RickJ CreditAttribution: RickJ commentedPatch
Comment #3
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commented@RickJ, Thanks for the patch. I have tested the patch using simplytest.me. It has Manage Permissions link over Configure page which redirects to the Permissions page. PFA for the same. But can we redirect the link to the section where Profile 2 permissions are displayed?
Comment #4
RickJ CreditAttribution: RickJ commentedThanks for pointing that out. I use the Filter-permissions module (I can recommend it!), and I coded the correct URL to show only the profile2 permissions when the filter module is installed. I hadn't realised that a module-specific link to permissions is different without that module (filter_perms tweaks the links from the modules list page).
Here's a version of the patch that behaves correctly depending on the presence or otherwise of filter-perms. Let me know if it checks out OK for you.
Comment #6
RickJ CreditAttribution: RickJ commented