8286: check if project is starred only when current_user is not null (anonymous user...
authorradhika <radhika@curoverse.com>
Tue, 16 Feb 2016 01:44:59 +0000 (20:44 -0500)
committerradhika <radhika@curoverse.com>
Tue, 16 Feb 2016 01:44:59 +0000 (20:44 -0500)
apps/workbench/app/views/application/_projects_tree_menu.html.erb
apps/workbench/app/views/application/_show_star.html.erb

index 4949c8fa4a662c82cd4af0b203c1ccbf1d504cb9..ad2620d3443f5dadb9b1ae9266e1d8d4c5e95d0d 100644 (file)
@@ -10,7 +10,7 @@
       <% end %>
     </li>
   <% end %>
-  <li role="presentation" class="divider">
+  <li role="presentation" class="divider"></li>
 <% end %>
 
 <li role="presentation" class="dropdown-header">
index 50775f140e0459ee5be19807ca7006e29369a496..25ed27529f903df628f3167f036f3201791cb7b5 100644 (file)
@@ -1,4 +1,4 @@
-<% if is_starred %>
+<% if current_user and is_starred %>
   <%= link_to(star_path(status: 'delete', id:@object.uuid, action_method: 'get'), class: "btn btn-xs star-unstar", title: "Remove from list of favorites", remote: true) do  %>
             <i class="fa fa-fw fa-star"></i>
           <% end %>