Commit 59fbcf82 authored by Georges Racinet's avatar Georges Racinet 🦑

Removed dead code for feature gating of Git snippets

This parallels what has been done upstream in `GitHttpController`,
and wasn't called due to lack of the corresponding `before_action`
(also removed upstream in `GitHttpController` but never present in
the Mercurial variant).

--HG--
branch : heptapod-stable
parent 23097beb2862
......@@ -107,10 +107,4 @@ def log_user_activity
Users::ActivityService.new(user).execute
end
def snippet_request_allowed?
if repo_type.snippet? && Feature.disabled?(:version_snippets, user)
Gitlab::AppLogger.info('Snippet access attempt with feature disabled')
render plain: 'Snippet git access is disabled.', status: :forbidden
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment