Fix a problem not showing documents (checkAccess)