fixed 项目member增加bot访问

This commit is contained in:
xxq250 2023-04-04 12:24:22 +08:00
parent 17c87f1043
commit 004f5a096d
1 changed files with 1 additions and 1 deletions

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)