Skip to content
Snippets Groups Projects
Commit 3802f879 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix user_signed_in verification in user show

parent 7e1fcd4c
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
</div>
</div>
<div class="col-md-6 right-column align-right">
<% if user_exists? and current_user_page? @user %>
<% if user_signed_in? && current_user_page? @user %>
<%= link_to 'Adicionar novo objeto', new_learning_object_path, class: 'btn btn-primary'%>
<% else %>
<!-- <button type="button" class="btn btn-primary">Enviar mensagem</button> -->
......@@ -48,7 +48,7 @@
</div>
</div>
<div class="col-md-6 right-column align-right">
<%= render('collections/create', collection: @new_collection, publishers: @publishers, placement: 'left') if user_exists? and current_user_page?(@user) %>
<%= render('collections/create', collection: @new_collection, publishers: @publishers, placement: 'left') if user_signed_in? && current_user_page?(@user) %>
</div>
</div>
......
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