title: Redirect loop on non-admin login
body: <p>I'm getting a redirect loop on a Drupal 7 install. Whenever a non-admin user logs in, the site will enter a redirect loop on the user profile URL; for example, <a href="http://example.com/?q=user/testuser" rel="nofollow">http://example.com/?q=user/testuser</a>.</p>
  
  <p>This URL is accessible with no issues by the superuser account, and attempting to access this URL while logged out returns a 403 Access Denied as expected.</p>
  
  <p>When logged in as a non-admin user, attempting to access any URL at all will redirect to the user profile page, which will then redirect onto itself, causing the redirect loop to start anew.</p>
  
  <p>I have found that if I give a specific user the "administrator" role, the redirect loop will cease for that user, and the page will no longer try to redirect to user/%username on login.</p>
  
  <p>I have also found that if I give users the "administer users" permission that the redirect loop will cease, but will still redirect the user to user/%username on login.</p>
  
  <p>Obviously neither of these solutions are possible as giving regular users administrator roles or the ability to administer users is a huge security risk.</p>
  
  <p>Does anyone know of a fix for this, or a way to get around this with an override related to user role?</p>
  
  <p>Installed modules: Block, Color, Comment, Contextual links, Dashboard, Database logging, Field, Field SQL storage, Field UI, File, Filter, Help, Image, List, Menu, Node, Number, Options, Overlay, Path, RDF, Search, Shortcut, System, Taxonomy, Text, Toolbar, Update manager, User, Chaos tools (7.x-1.0-alpha4), Page manager, Devel, Theme Developer, Fieldgroup, IMCE, Pathauto, Token, Taxonomy Menu, IMCE Wysiwyg API bridge, Wysiwyg, Webform, and several custom modules which i) provide blocks 2) provide custom pages and 3) modify the default search behaviour (splits search results by node type). None of my custom modules ever interface with the user management system, permissions system or use any of the functions provided by the user module.</p>