浏览代码

add admin user depart records

abiao 4 年之前
父节点
当前提交
5e73a7b412
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/wx_user.rb

+ 1 - 1
app/models/wx_user.rb

@@ -5,7 +5,7 @@ class WxUser < ActiveRecord::Base
   has_paper_trail
   self.table_name = "wx_users"
   scope :所有会员, -> {}
-  scope :群主, -> { where("rank=? and show_invite_mode=?",1,1) }
+  scope :代理, -> { where("rank=? and show_invite_mode=?",1,1) }
   scope :店长, -> { where("rank=? and show_invite_mode=?",2,1) }
 
   belongs_to :user