Skip to content
Browse files

don't show link in edit profile

  • Loading branch information...
1 parent 98442aa commit 59bab91f363593a997f55220af2150543efecd76 @herestomwiththeweather herestomwiththeweather committed Oct 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/views/people/edit.html.erb
View
4 app/views/people/edit.html.erb
@@ -24,7 +24,9 @@
<div class="form_row full">
<label for="person_categories"><%= t('people.edit.services_offered') %>
</label>
- <span class="categoryAdd"><%= link_to t('people.edit.add_new_category'), new_category_path %></span>
+ <% if can?(:create, @category) %>
+ <span class="categoryAdd"><%= link_to t('people.edit.add_new_category'), new_category_path %></span>
+ <% end %>
<%= render :partial => "shared/select_categories", :locals => { :model_name => 'person' } %>
</div>

0 comments on commit 59bab91

Please sign in to comment.
Something went wrong with that request. Please try again.