项目的非创建者管理员也可编辑项目头像
This commit is contained in:
parent
5fbb9f56a6
commit
f25a90cccd
|
@ -51,7 +51,7 @@
|
|||
<div class="project_info">
|
||||
<div class="pr_info_logo fl mr10 mb5">
|
||||
<div class="pr" style="width: 64px; height:64px;">
|
||||
<% if User.current.logged? && (User.current.id == @project.user_id || User.current.admin?)%>
|
||||
<% if User.current.logged? && (User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) || User.current.admin?)%>
|
||||
<%=link_to image_tag(url_to_avatar(@project),width:"60", height: "60", :id=>'nh_source_tx'), my_clear_user_avatar_temp_path(:project => @project.id), :remote => true%>
|
||||
<div class="homepageEditProfile undis">
|
||||
<%=link_to '', my_clear_user_avatar_temp_path(:project => @project.id), :remote => true, :class => 'homepageEditProfileIcon', :title => '点击编辑Logo' %>
|
||||
|
|
Loading…
Reference in New Issue