lib/travis/cli/enable.rb in travis-1.6.12.travis.520.6 vs lib/travis/cli/enable.rb in travis-1.6.12.travis.521.6
- old
+ new
@@ -6,9 +6,10 @@
description "enables a project"
on('-s', '--skip-sync', "don't trigger a sync if the repo is unknown")
def run
authenticate
+ error "not allowed to update service hook for #{color(repository.slug, :bold)}" unless repository.admin?
repository.enable
say "enabled", color("#{slug}: %s :)", :success)
end
private