added check to admin rights every page load