Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/settings.rb')
-rw-r--r--lib/api/settings.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/settings.rb b/lib/api/settings.rb
index 28c7a05c629..4aa81bf8bab 100644
--- a/lib/api/settings.rb
+++ b/lib/api/settings.rb
@@ -1,7 +1,6 @@
module API
class Settings < Grape::API
- before { authenticate! }
- before { authorize_admin_project }
+ before { authenticated_as_admin! }
helpers do
def current_settings