summaryrefslogtreecommitdiff
path: root/lib/api/settings.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-06 15:53:08 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-06 15:53:08 +0200
commitb28714b6a9bf71fac64a0423091fb7eab244fd7f (patch)
treec55289f21e28dd43c320853adb1dc88cb757c42e /lib/api/settings.rb
parentc2ee6862c8538c967ba04fa72b702198f31f876c (diff)
downloadgitlab-ce-b28714b6a9bf71fac64a0423091fb7eab244fd7f.tar.gz
Add docs and empty specs for applicaiton settings API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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