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 biggest fix is that if a user can't see the plugin we don't return drupal_not_found(). Also the access check was weird -- checking if the user has logged in.
1) Patch now returns early if there's no access.
2) Patch checks access using user_access()
Comment | File | Size | Author |
---|---|---|---|
fix-user-profile.patch | 1.12 KB | amitaibu |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedOh man. That drupal_not_found() was STILL in there? I feel bad about that. I've seen it at least twice and I never actually come back around and fix it. Thanks for the patch!
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedI also backported this to 6.x, just changed the clone to drupal_clone() -- everything else seems okay.