权限控制
This commit is contained in:
parent
7d07989939
commit
73297230d1
|
@ -77,7 +77,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header-con">
|
<div class="header-con">
|
||||||
|
<% if User.current.admin_of_org?(@organization) %>
|
||||||
<a href="javascript:void(0);" class="fl logo" onclick="orge_new_files_upload();">
|
<a href="javascript:void(0);" class="fl logo" onclick="orge_new_files_upload();">
|
||||||
<!--"/files/uploads/image#{iamge_path}"-->
|
<!--"/files/uploads/image#{iamge_path}"-->
|
||||||
<% if @org_logo_attchment.blank? %>
|
<% if @org_logo_attchment.blank? %>
|
||||||
|
@ -86,6 +86,16 @@
|
||||||
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" height="52">
|
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" height="52">
|
||||||
<% end %>
|
<% end %>
|
||||||
</a>
|
</a>
|
||||||
|
<% else %>
|
||||||
|
<a href="javascript:void(0);" class="fl logo" onclick="orge_new_files_upload();">
|
||||||
|
<!--"/files/uploads/image#{iamge_path}"-->
|
||||||
|
<% if @org_logo_attchment.blank? %>
|
||||||
|
<img src="/images/org_new_style/logo.jpg" height="52" alt=""/>
|
||||||
|
<% else %>
|
||||||
|
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" height="52">
|
||||||
|
<% end %>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<%# 登录 %>
|
<%# 登录 %>
|
||||||
|
|
Loading…
Reference in New Issue