Add access_token only on pro for log url

This commit is contained in:
Piotr Sarnacki 2015-01-07 13:06:05 +01:00
parent 9759735249
commit 86a02ad1da

View File

@ -273,7 +273,7 @@ Travis.reopen
url = Travis.Urls.plainTextLog(id)
if Travis.config.pro
token = @get('job.log.token') || @get('build.jobs.firstObject.log.token')
url += "&access_token=#{token}"
url += "&access_token=#{token}"
url
).property('jobIdForLog', 'job.log.token', 'build.jobs.firstObject.log.token')