Skip to content

Commit 5fec655

Browse files
add read permission check
1 parent 25bfee1 commit 5fec655

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/travis/api/v3/permissions/build.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def restart?
1111
end
1212

1313
def prioritize?
14-
build_priorities?
14+
read? && build_priorities?
1515
end
1616
end
1717
end

lib/travis/api/v3/permissions/job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def delete_log?
1919
end
2020

2121
def prioritize?
22-
build_priorities?
22+
read? && build_priorities?
2323
end
2424
end
2525
end

0 commit comments

Comments
 (0)