Removed code that was causing permissions to be checked twice and creating access denied errors for users who should have access