Limit snippet visibility to match project visibility.
Proposal
Limit the possible variants of visibility for snippet to match project visibility.
Background
Embed button on snippets is shown for Public Snippets in private project, but upon embedding the snippets to a web page, GitLab responds 404.
The above issue was solved in #379412 (closed) by hiding the embed button.
Next step(this issue) is to not allow project snippets with visibility higher than project one.
Screenshots of current experience
Edited by Michael Le