Skip to content
Snippets Groups Projects
Commit 243b6242 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

display edit action for only owners

parent 5389d4c5
No related branches found
No related tags found
No related merge requests found
......@@ -89,11 +89,15 @@
</a>
<%= render 'share_modal' %>
</div>
<div class="action">
<a tabindex="1" class="btn btn-primary" role="button" title="Editar conteúdo" href="<%= edit_learning_objects_path(@learning_object) %>">
<i class="fa fa-pencil"></i>
</a>
</div>
<% if policy(@learning_object).update? %>
<div class="action">
<a tabindex="1" class="btn btn-primary" role="button" title="Editar conteúdo" href="<%= edit_learning_objects_path(@learning_object) %>">
<i class="fa fa-pencil"></i>
</a>
</div>
<% end %>
</div>
<% else %>
<div class="login-info">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment