放开新建课程、新建班级的权限

This commit is contained in:
cxt 2016-07-29 19:28:50 +08:00
parent 335b82c046
commit 5a8d2407e2
1 changed files with 4 additions and 4 deletions

View File

@ -192,7 +192,7 @@
<%= link_to '课程',{:controller => "users", :action => "user_courselist", :id => @user.id}, :class => "homepageMenuText" %> <%= link_to '课程',{:controller => "users", :action => "user_courselist", :id => @user.id}, :class => "homepageMenuText" %>
<% if is_current_user%> <% if is_current_user%>
<% if User.current.user_extensions && User.current.user_extensions.identity == 0 && User.current.allowed_to?(:add_course, nil, :global => true)%> <%# if User.current.user_extensions && User.current.user_extensions.identity == 0 && User.current.allowed_to?(:add_course, nil, :global => true)%>
<div class="courseMenu" id="courseMenu"> <div class="courseMenu" id="courseMenu">
<ul> <ul>
<li class="courseMenuIcon fr" style="margin-right:10px;" id="courseMenuIcon"> <li class="courseMenuIcon fr" style="margin-right:10px;" id="courseMenuIcon">
@ -211,9 +211,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<% else%> <%# else%>
<%=link_to "", join_private_courses_courses_path, :class => "homepageMenuSetting fr",:style => "margin-right:10px;", :remote => true, :title => "加入班级"%> <%#=link_to "", join_private_courses_courses_path, :class => "homepageMenuSetting fr",:style => "margin-right:10px;", :remote => true, :title => "加入班级"%>
<% end%> <%# end%>
<% end%> <% end%>
</div> </div>
<% end %> <% end %>