title: WordPress - “You do not have sufficient permissions to access this page” in production but not locally with AWS and Bedrock
body: <p>I have an installation of WordPress setup using Bedrock(<a href="https://roots.io/bedrock/" rel="nofollow">https://roots.io/bedrock/</a>) hosted on Amazon Web Services' Elastic Beanstalk. I am getting the following error when I try logging in with my admin user:</p>
  
  <blockquote>
    <p>"You do not have sufficient permissions to access this page" </p>
  </blockquote>
  
  <p>What's strange is that I only get this error in production. Locally everything works fine. The rest of the site also works fine in production.</p>
  
  <p>I've been trying for quite a while, however none of the things I've tried seem to help. Below are some notes of what I've tried/noticed:</p>
  
  <ul>
  <li>Did not change table prefix for database</li>
  <li>Checked usermeta table - all the values are fine for wp_capabilities and wp_user_level</li>
  <li>Tried creating a 'force-upgrade.php' script.</li>
  <li>Can't access any admin pages by changing the URL (e.g wp-admin/themes.php)</li>
  <li>The issue arose after the switch the Bedrock</li>
  <li>Made sure the config files were identical in both environments</li>
  </ul>
  
  <p>Any help would be much appreciated. </p>