I use Drupal for Facebook, after logging and redirects to the pages checkout/xx/user/register or checkout/xx/user/login I see message:
Access Denied

Comments

Prague man’s picture

My solution is:

function my_module_init() {
  global $user;
  
  if($user->uid != 0 && arg(0) == "checkout" && is_numeric(arg(1)) && arg(2) == "user") {
    drupal_goto("checkout/".arg(1));
  }
}
bossmac’s picture

Hi.. where did you put the code? thanks..

destinationsound’s picture

id like to know where you put this code also, Thanks!

berenddeboer’s picture

Given that this code is a hook_init, create a new module, and put it in there. But a hook_init is pretty dirty.

vasike’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Please use the branch 2 version of the module.
The version 1 will not be supported anymore
I think will also cover this issue, if not please re-open the issue as for version 2.