导入资源按钮点击没反应问题
This commit is contained in:
parent
fbcae050ad
commit
519ed365cc
|
@ -2780,7 +2780,8 @@ class UsersController < ApplicationController
|
|||
# 导入资源
|
||||
def import_resources
|
||||
# 别人的资源库是没有权限去看的
|
||||
if User.current.id.to_i != params[:id].to_i
|
||||
user = User.find_by_login(params[:id])
|
||||
if User.current != user
|
||||
render_403
|
||||
return
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<%= call_hook(:view_repositories_show_contextual, {:repository => @repository, :project => @project}) %>
|
||||
<div class="project_r_h">
|
||||
<div class="fl"><h2 class="project_h2_repository"><%= render :partial => 'breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %></h2></div>
|
||||
<a href="javascript:void(0);" class="btn_zipdown fr" >ZIP下载</a>
|
||||
<!--<a href="javascript:void(0);" class="btn_zipdown fr" onclick="">ZIP下载</a>-->
|
||||
|
||||
</div>
|
||||
<div class="repository_con" style="line-height:1.9;">
|
||||
|
|
Loading…
Reference in New Issue