Summary
Once T414185: Update documentation for bl_deleted to indicate it can have a third state, is complete we should update code which reads bl_deleted to parse and handle the third value of 2
Background
- T414185: Update documentation for bl_deleted to indicate it can have a third state updated the documentation for bl_deleted to say that since 1.46 the column can have a value of 2 to indicate that the block is deleted but the target should not be hidden everywhere else
- We need to update code which reads this column to understand that and appropriately apply restrictions on viewing data
- Users who lack hideuser should not be able to see blocks with bl_deleted set to 2
- We could use a different user right for this, but it seems easier and likely less code changes to use the same right as for an existing "hide user" block
- The list of code that needs an update can be seen at https://codesearch.wmcloud.org/search/?q=bl_deleted&files=&excludeFiles=&repos=
Acceptance criteria
- All code that reads bl_deleted handles the value of 2 appropriately