summaryrefslogtreecommitdiff
path: root/lib/api/internal.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-15 13:49:11 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-15 13:49:11 +0200
commit9d1ccd2ad3af37139649100476b568d219343a57 (patch)
tree4475c8f777e25a3a7708ed7012f190b844fdaa7c /lib/api/internal.rb
parent50076ab974348e74514bb4f19169351f08e11636 (diff)
downloadgitlab-ce-9d1ccd2ad3af37139649100476b568d219343a57.tar.gz
Fix existing authorization specs
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 2ec94570506..2610fd329d6 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -35,6 +35,14 @@ module API
Project.find_with_namespace(project_path)
end
end
+
+ def ssh_capabilities
+ [
+ :read_project,
+ :download_code,
+ :push_code
+ ]
+ end
end
post "/allowed" do
@@ -130,16 +138,6 @@ module API
{ success: true, recovery_codes: codes }
end
-
- private
-
- def ssh_capabilities
- [
- :read_project,
- :download_code,
- :push_code
- ]
- end
end
end
end