Permalink
Browse files

bugfix when non authenticated while visiting the admin page

  • Loading branch information...
penso committed Jan 12, 2013
1 parent f31c994 commit 74339a499eef7229827ab155b998097d2c2d2614
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/layouts/adminfixed.html.erb
@@ -58,7 +58,7 @@
<%= nav_link "Your account", edit_account_path %>
<%= nav_link "Your audience", emails_path %>
- <% if @photographer.specific_url %>
+ <% if @photographer && @photographer.specific_url %>
<%= nav_link "Your Public Website", "http://#{@photographer.specific_url}" %>
<% end %>

0 comments on commit 74339a4

Please sign in to comment.