app/models/educode_sales/permission.rb in educode_sales-1.10.58 vs app/models/educode_sales/permission.rb in educode_sales-1.10.59

- old
+ new

@@ -1,6 +1,13 @@ module EducodeSales class Permission < ApplicationRecord + # EducodeSales::Permission.create(name: '查看数据', subject: 'SalePlan', action: 'new_index', clazz: 'sale_plan') + # EducodeSales::Permission.create(name: '分类查看', subject: 'SalePlan', action: 'new_type_index', clazz: 'sale_plan') + # EducodeSales::Permission.create(name: '添加目标', subject: 'SalePlan', action: 'new_create', clazz: 'sale_plan') + # EducodeSales::Permission.create(name: '编辑目标', subject: 'SalePlan', action: 'new_update', clazz: 'sale_plan') + # EducodeSales::Permission.create(name: '审核目标', subject: 'SalePlan', action: 'new_audit', clazz: 'sale_plan') + # EducodeSales::Permission.create(name: '查看记录', subject: 'SalePlan', action: 'new_record_index', clazz: 'sale_plan') + default_scope { where(hidden: false) } enum clazz: { '销售态势': 'market', '销售分工': 'sale_job', '商机管理': 'business', '渠道管理': 'place',