Modify grant aciton in AccountsController.