If an other module already implements hook_menu_alter to define a custom callback function with custom arguments for user/%user/edit path,
useraccount_permissions_menu_alter() didn't restore default arguments list, so the value received in callback function may not be a user account as expected.

Comments

geoffray created an issue. See original summary.

geoffray’s picture

geoffray’s picture

Status: Active » Needs review
deggertsen’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. Thanks for catching that. I definitely think this should be committed.

  • grasmash committed 825631d on 7.x-1.x authored by geoffray
    Issue #2832390 by geoffray: Restore default access arguments in...
grasmash’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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