Skip to content

Commit 7feab24

Browse files
author
Vidas P
committed
Fix broken job links
1 parent 9e3f4d5 commit 7feab24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/views/jobs/index.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<td><%= status(job) %></td>
3333
<td><% case agent = agent_from_job(job)
3434
when Agent
35-
%><%= link_to(agent.name, agent_path(agent)) %><%
35+
%><% if current_user.id == agent.user_id %><%= link_to(agent.name, agent_path(agent)) %><% else %><%= agent.name %><% end %><%
3636
when String
3737
%><%= agent %><%
3838
when false
@@ -90,4 +90,3 @@
9090
</div>
9191
</div>
9292
</div>
93-

0 commit comments

Comments
 (0)