Commit 5a6724e72a31dd6b2b4f9e9297da1b6dd51b7421
1 parent
be89a25c
Exists in
staging
and in
42 other branches
ActionItem154: fixing user_menu so it doesn't crash
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1273 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/views/shared/user_menu.rhtml
| ... | ... | @@ -19,12 +19,12 @@ |
| 19 | 19 | <%= |
| 20 | 20 | '<li>'+ link_to( '<span class="icon-menu-"></span>'+ _('Admin'), |
| 21 | 21 | { :controller => 'admin_panel' }, :id => 'link_admin_panel' ) + |
| 22 | - '</li>' if current_user.person.is_admin? | |
| 22 | + '</li>' if user.is_admin? | |
| 23 | 23 | %> |
| 24 | 24 | <li><%= link_to( '<span class="icon-menu-"></span>'+_('Edit Profile'), |
| 25 | - :controller => 'profile_editor', :action => 'edit' ) %></li> | |
| 25 | + :controller => 'profile_editor', :profile => user.identifier, :action => 'edit' ) %></li> | |
| 26 | 26 | <li><%= link_to( '<span class="icon-menu-"></span>'+_('Consumed Products'), |
| 27 | - :controller => 'consumed_products' ) %></li> | |
| 27 | + :profile => user.identifier, :controller => 'consumed_products' ) %></li> | |
| 28 | 28 | </ul> |
| 29 | 29 | |
| 30 | 30 | <% else %> | ... | ... |