Browse Source

fixed 项目member增加bot访问

pull/342/head
xxq250 3 years ago
parent
commit
004f5a096d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/concerns/project_operable.rb

+ 1
- 1
app/models/concerns/project_operable.rb View File

@@ -95,7 +95,7 @@ module ProjectOperable

# 安装bot后的权限
def is_install_bot?(user)
user.platform == "bot" && BotInstall.joins(:bot).where(bot: { uid: user_id }).where(store_id: self.id).exists?
user.platform == "bot" && BotInstall.joins(:bot).where(bot: { uid: user.id }).where(store_id: self.id).exists?
end

def member?(user_id)


Loading…
Cancel
Save