diff options
author | Rémy Coutable <remy@rymai.me> | 2016-01-13 19:46:38 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-01-13 19:46:38 +0100 |
commit | 33ea09bdf9c05c60438f03ac1fe94b52615cd05e (patch) | |
tree | 93e4f76b5f03f6c5d24c0ee5aef849acc9bfa253 /lib/api/entities.rb | |
parent | 0c10aee59677e2dadfef6538a74fe1e28fcdd37e (diff) | |
parent | 1202355703b9357e85fffa308a25c86576f7bfa0 (diff) | |
download | gitlab-ce-33ea09bdf9c05c60438f03ac1fe94b52615cd05e.tar.gz |
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into fix/private-references
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 26e7c956e8f..e3bc3316ce5 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -71,6 +71,7 @@ module API expose :avatar_url expose :star_count, :forks_count expose :open_issues_count, if: lambda { |project, options| project.issues_enabled? && project.default_issues_tracker? } + expose :runners_token, if: lambda { |_project, options| options[:user_can_admin_project] } end class ProjectMember < UserBasic |