Change isUserHavingAccessToView to protected (#12382)

Change-Id: I9dcab5d41bf7a07d82606ae5a2f20b2d6309cabc