Fix #active?
invocation
Second arg is repository
This commit is contained in:
parent
56ea1d6663
commit
05e860dd35
|
@ -7,7 +7,7 @@ module Travis::API::V3
|
|||
def run
|
||||
raise LoginRequired unless access_control.logged_in? or access_control.full_access?
|
||||
raise NotFound unless @job = find(:job)
|
||||
raise WrongCredentials unless Travis.config.debug_tools_enabled or Travis::Features.active?(:debug_tools, access_control.user)
|
||||
raise WrongCredentials unless Travis.config.debug_tools_enabled or Travis::Features.active?(:debug_tools, job.repository)
|
||||
access_control.permissions(job).debug!
|
||||
|
||||
job.config.merge! debug_data
|
||||
|
|
Loading…
Reference in New Issue
Block a user