**System Information**
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06
**Blender Version**
Broken: version: 2.91.0 Alpha, branch: wireframe_opacity, commit date: 2020-09-19 15:03, hash: `rB41a3141e0967`
Worked: (newest version of Blender that worked as expected)
**Short description of error**
After trying the new Switch Objects operator in Sculpt Mode and Edit Mode, I noticed that the operator completely ignores if an object has Disable Selection active or not in the Outliner.
{F8900573}
**Exact steps for others to reproduce the error**
1. Have two separate objects in your scene. Go into Sculpt Mode or Edit Mode with one object.
2. Use Disable Selection in the Outliner on the object you are not selecting in Sculpt Mode/Edit Mode.
3. Click on the object that uses Disable Selection. You will be able to select it regardless.