Updated checkAccess