Fix second 500 error with NULL restricted visibility levels
!30313 (merged) fixed one
500 error when application_settings.restricted_visibility_levels
is
NULL, but !22522 (merged)
introduced the public visiblity check in two places.
To fix this problem and reduce code duplication, move this check into
Gitlab::VisibilityLevel
, where NULL values of
restricted_visibility_levels
was already handled.
Closes #215638 (closed)
Edited by Stan Hu