修改超级管理员不能退出项目
This commit is contained in:
parent
f94c2769e6
commit
84a7bb5907
|
@ -16,7 +16,7 @@
|
|||
<%= link_to "<span class='#{typeclass}'></span>#{text}".html_safe,"javascript:void(0)" ,:onClick => "show_window();", :class => "pr_join_a",:id => "setting_project_type"%>
|
||||
<% end %>
|
||||
<!--退出项目-->
|
||||
<% if (User.current.member_of? @project) && User.current.login? &&
|
||||
<% if (User.current.member_of? @project) && User.current.login? && !User.current.admin &&
|
||||
Member.where(:user_id => User.current.id, :project_id => @project.id).first.roles.first.to_s != "Manager" %>
|
||||
<%= exit_project_link(@project) %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue