ソースを参照

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