archive app Category Authorization fix
This commit is contained in:
		
							parent
							
								
									8751b15385
								
							
						
					
					
						commit
						07b3857465
					
				| 
						 | 
					@ -24,16 +24,17 @@
 | 
				
			||||||
	</td>
 | 
						</td>
 | 
				
			||||||
	<td><%= archive_file.archive_file_category.title %></td>
 | 
						<td><%= archive_file.archive_file_category.title %></td>
 | 
				
			||||||
	<td>
 | 
						<td>
 | 
				
			||||||
	<%= link_to archive_file.title, panel_archive_front_end_archive_file_path(archive_file) %>
 | 
						  <%= link_to archive_file.title, panel_archive_front_end_archive_file_path(archive_file) %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							<div class="quick-edit">
 | 
				
			||||||
 | 
								<ul class="nav nav-pills hide">
 | 
				
			||||||
 | 
									<% 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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<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>
 | 
					 | 
				
			||||||
			<% end -%>
 | 
					 | 
				
			||||||
		</ul>
 | 
					 | 
				
			||||||
	</div>
 | 
					 | 
				
			||||||
	</td>
 | 
						</td>
 | 
				
			||||||
	<td>
 | 
						<td>
 | 
				
			||||||
		<div class="label-group">
 | 
							<div class="label-group">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue