iidbae
2018 年 3 月 20 日午後 4:44
1
このサイトには222日前に登録したばかりで、これが初めてのトピックです。
このコードをコピー&ペーストする方法は?
25 件の成功した招待に対してバッジを与えたいと考えています。そのためには、HAVING COUNT (*) >= 5 の値を HAVING COUNT (*) >= 25 に変更し、バッジの種類を Gold に設定すればよいのでしょうか?合っていますか?
似たトピックを見つけました:"Promoter" Badge broken?
コーディングに詳しくないため、確認したくて質問しました。
馬鹿げた質問で申し訳ありません。
「いいね!」 1
cpradio
(cpradio)
2018 年 3 月 20 日午後 4:50
2
Here are the steps for enabling the SQL Badge Queries
Enabling Badge SQL entails security and performance risks.
Starting from Discourse 1.6 badge SQL can no longer be edited by admins unless explicitly enabled.
This change was made for a couple of reasons:
Security: Allowing admins to enter SQL directly grants them raw access to the database. Generally, we opt that raw access to the database from the web UI as a feature you opt-in for. Even though the queries only return user_ids, an admin attacker can discover any information in …
「いいね!」 6
iidbae
2018 年 3 月 20 日午後 4:56
3
Thank you Cpradio, yes I have enabled the SQL within 3 days , but its still locked.
I believe its for security purpose.
I tried to explore the Github too, but still does not know how to find the code line.
「いいね!」 1
simon
2018 年 3 月 20 日午後 5:22
4
「いいね!」 5
iidbae
2018 年 3 月 21 日午前 2:53
5
Thank you very much Simon.
I put wrong keyword in searching the code in the repository.
After I found the sql query, I still confuse.
I want to open another support topic, to make another question relating to this.
Thank you.
「いいね!」 1
jomaxro
(Joshua Rosenfeld)
クローズされました:
2018 年 3 月 26 日午後 10:00
6
This topic was automatically closed after 33 hours. New replies are no longer allowed.