archive app Category Authorization fix

This commit is contained in:
Spen 2013-06-26 17:44:31 +08:00
parent 8751b15385
commit 07b3857465
1 changed files with 10 additions and 9 deletions

View File

@ -28,12 +28,13 @@
<div class="quick-edit">
<ul class="nav nav-pills hide">
<%if at_least_module_manager || archive_file.archive_file_category.cur_user_is_sub_manager_of(:edit)%>
<li><%= link_to t('edit'), edit_panel_archive_back_end_archive_file_path(archive_file, :page => params[:page], :filter => @filter) %></li>
<li><%= link_to t(:delete_), panel_archive_back_end_archive_file_path(archive_file), :confirm => t('sure?'), :method => :delete, :remote => true %></li>
<% if (archive_file.create_user_id == current_or_guest_user.id) || is_manager? %>
<li><%= link_to t(:edit), edit_panel_archive_back_end_archive_file_path(archive_file) %></li>
<li class="dropdown"><%= link_to t(:delete_), panel_archive_back_end_archive_file_path(archive_file), :confirm => t(:sure?), :method => :delete, :remote => true %></li>
<% end -%>
</ul>
</div>
</td>
<td>
<div class="label-group">