Register link is still displayed despite snippet register being disabled
Title: "Register link is still displayed despite snippet registration being disabled"
MR: Fix register link showing when signup is disabled (!199837 - merged)
Summary On a self-hosted GitLab instance, a “Register” link continues to appear on snippet pages even though the registration feature (specifically for snippets or overall) has been explicitly disabled in the GitLab settings. This is confusing for users who should not be able to sign up or create new accounts.
Steps to Reproduce
-
Host your own GitLab instance.
-
Disable the snippet (or overall) registration feature in the GitLab settings (e.g., via gitlab.rb or in the Admin settings).
-
Visit a snippet URL that should be publicly accessible.
-
Notice that a “Register” link is still shown.
Expected Behavior When snippet registration is disabled, no “Register” link should be displayed on snippet pages. They should be fully accessible publicly without inviting users to create a new account.
Actual Behavior Despite snippet registration being disabled, the “Register” link remains visible. Clicking it leads to a sign-up form, which is not intended.
Relevant Configuration/Environment
GitLab Version: on date
Installation Type: Self-hosted
Configuration File (gitlab.rb or Admin panel) related to snippet registration settings (relevant excerpts if available)
Thank you for looking into this issue. Please let me know if any additional details are needed!
