管理员栏目其它成员不可见

This commit is contained in:
huang 2016-06-03 15:56:04 +08:00
parent 43e586aa90
commit edbe882cc9
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ module OrganizationsHelper
if User.current.admin?
@organization.org_subfields.order("priority")
else
@organization.org_subfields.select { |os| (os.field_type != "Comptec" && os.field_type != "Compstu") }.sort_by {|os| os.priority}
@organization.org_subfields.select { |os| (os.field_type != "Comptec" && os.field_type != "Compstu" && os.field_type != "Comppro" && os.field_type != "Compcou" && os.field_type != "Compact") }.sort_by {|os| os.priority}
end
end