[#277] fix showing edit user link
This commit is contained in:
parent
234b0a2075
commit
57fd79e17c
|
@ -16,7 +16,7 @@
|
|||
%p{:title => user.try(:name)}
|
||||
- if user
|
||||
= short_message(user.name, 28)
|
||||
= link_to image_tag('gears.png'), edit_url
|
||||
= link_to image_tag('gears.png'), edit_url if can?(:edit, user)
|
||||
.both
|
||||
- if user
|
||||
%p.info.first
|
||||
|
|
Loading…
Reference in New Issue