summaryrefslogtreecommitdiff
path: root/app/helpers/branches_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/branches_helper.rb')
-rw-r--r--app/helpers/branches_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/branches_helper.rb b/app/helpers/branches_helper.rb
index 2a0242fe2fa..8f87cd5bfe0 100644
--- a/app/helpers/branches_helper.rb
+++ b/app/helpers/branches_helper.rb
@@ -13,7 +13,11 @@ module BranchesHelper
return [] unless access_levels
access_levels.map do |level|
- { id: level.id, type: :role, access_level: level.access_level }
+ if level.type == :deploy_key
+ { id: level.id, type: level.type, deploy_key_id: level.deploy_key_id }
+ else
+ { id: level.id, type: :role, access_level: level.access_level }
+ end
end
end
end