This commit is contained in:
Toks
2013-04-29 17:40:29 -04:00
parent e1c34df22e
commit 78281a9b4c
3 changed files with 6 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
<%= link_to(tag.name, posts_path(:tags => tag.name)) %>
</td>
<td>
<% if CurrentUser.is_builder? || tag.post_count <= 50 %>
<% if tag.editable_by?(CurrentUser.user) %>
<%= link_to "edit", edit_tag_path(tag) %>
<% end %>
<% if CurrentUser.is_builder? && tag.post_count < 1_000 %>