I've encountered a strange issue whereby creating a new git branch on a Drupal 7 site and switching to it causes admin users' permissions to seemingly disappear. After performing the git branch, all admin users (who normally have near full access) see the admin toolbar but only have the ability to add content. All other links are missing.
I have tried visiting admin pages directly and that yields access denied. I have tried rebuilding permissions and clearing cache as well. Has anyone encountered this?
git status
after you branched?