fixed 项目member增加bot访问
This commit is contained in:
parent
17c87f1043
commit
004f5a096d
|
@ -95,7 +95,7 @@ module ProjectOperable
|
||||||
|
|
||||||
# 安装bot后的权限
|
# 安装bot后的权限
|
||||||
def is_install_bot?(user)
|
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
|
end
|
||||||
|
|
||||||
def member?(user_id)
|
def member?(user_id)
|
||||||
|
|
Loading…
Reference in New Issue