Commit d7a8e142 authored by Francisco Javier López's avatar Francisco Javier López

Merge branch '369-editor-team-thresholds' into 'master'

Update Editor team endpoint custom thresholds

See merge request gitlab-org/gitlab!72681
parents 0a170ec0 1446203f
......@@ -3,6 +3,8 @@
class Projects::WikisController < Projects::ApplicationController
include WikiActions
urgency :low
alias_method :container, :project
before_action do
......
......@@ -3,6 +3,8 @@
class Groups::WikisController < Groups::ApplicationController
include WikiActions
urgency :low
alias_method :container, :group
feature_category :wiki
......
......@@ -43,7 +43,7 @@ module API
params do
use :pagination
end
get 'public' do
get 'public', urgency: :low do
authenticate!
present paginate(public_snippets), with: Entities::PersonalSnippet, current_user: current_user
......
......@@ -32,7 +32,7 @@ module API
params do
optional :with_content, type: Boolean, default: false, desc: "Include pages' content"
end
get ':id/wikis' do
get ':id/wikis', urgency: :low do
authorize! :read_wiki, container
entity = params[:with_content] ? Entities::WikiPage : Entities::WikiPageBasic
......
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