fix admins org and show private org's cla
This commit is contained in:
parent
325f345381
commit
65eaafe003
|
@ -61,7 +61,6 @@ class Organizations::ClasController < Organizations::BaseController
|
|||
def load_organization
|
||||
@organization = Organization.find_by(login: params[:organization_id]) || Organization.find_by(id: params[:organization_id])
|
||||
return render_not_found("组织不存在") if @organization.nil?
|
||||
return render_forbidden("没有查看组织的权限") if org_limited_condition || org_privacy_condition
|
||||
end
|
||||
|
||||
def load_cla
|
||||
|
|
|
@ -28,11 +28,9 @@
|
|||
<div class="form-row">
|
||||
<%= f.input :lastname, label: '姓名', wrapper_html: { class: 'col-md-3' }, input_html: { readonly: true, class: 'col-md-11', value: @org.real_name } %>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<%= f.input :cla, label: '是否开通CLA', wrapper_html: { class: 'col-md-3' }, input_html: { class: 'col-md-11', value: @org.cla } %>
|
||||
<%= f.input :enabling_cla, as: :boolean, label: '开通CLA', checked_value: 1, unchecked_value: 0 %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<% end %>
|
||||
<h3> 组织项目 </h3>
|
||||
|
|
Loading…
Reference in New Issue