管理员栏目其它成员不可见
This commit is contained in:
parent
43e586aa90
commit
edbe882cc9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue