Merge remote-tracking branch 'origin/szzh' into szzh

This commit is contained in:
ouyangxuhua 2015-11-14 14:32:02 +08:00
commit b7f12b9cde
1 changed files with 1 additions and 2 deletions

View File

@ -34,8 +34,7 @@
</div>
<% end %>
</li>
<!-- -->
<% if ( (User.current.id == member.organization.creator_id || member.roles[0].name == "orgManager" ) && member.user_id != member.organization.creator_id )%>
<% if ( (User.current.id == member.organization.creator_id || User.current.admin_of_org?(member.organization) ) && member.user_id != member.organization.creator_id )%>
<a href="javascript:void(0);" style="color: #0781B4;margin-left: 30px;float: left" onclick="$(this).parent().height(70);$('#org-member-<%= member.id%>-roles-form').show();">编辑</a>
<%= link_to '删除', org_member_path(member.id),:method=>'delete',:style=>'color: #0781B4;margin-left: 30px;float: left',:confirm=>'您确定要删除么?', :remote => true %><% end %>
<div class="cl"></div>