Access denied for all pages including admin in Drupal 8
<p>Recently I made following 2 changes in the admin, after that it show "You are not authorized to access this page" for all pages including admin panel. I do not know how to restore it.</p>

<p>The changes are</p>

<p>1) Enabled Web services modules of HAL, Basic Auth and Resful API</p>

<p>2) Admin > People > Permission, checked on the checkbox for some settings.</p>

<p>Right now only the header and footer is loading with above message for all pages including admin panel. Please help me to fix this.</p>

<p>Note : I tried by clearing browser cache and execute update.php but nothing works.</p>