mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: display process information on flag modal (#31300)
Information about the process is displayed on top of the flag modal. In addition `allow_tl0_and_anonymous_users_to_flag_illegal_content` site setting was renamed to `allow_all_users_to_flag_illegal_content` as it is more descriptive. <img width="629" alt="Screenshot 2025-02-12 at 3 58 12 pm" src="https://github.com/user-attachments/assets/67c74ebc-6771-490d-b2c4-cbec25db8128" /> <img width="642" alt="Screenshot 2025-02-12 at 3 58 04 pm" src="https://github.com/user-attachments/assets/5e4b8c84-601a-40c2-812f-b73d2b88a549" />
This commit is contained in:
committed by
GitHub
parent
fa8945fee2
commit
2763e1726e
@@ -267,7 +267,7 @@ module SiteSettings::Validations
|
||||
validate_error :twitter_summary_large_image_no_svg
|
||||
end
|
||||
|
||||
def validate_allow_tl0_and_anonymous_users_to_flag_illegal_content(new_val)
|
||||
def validate_allow_all_users_to_flag_illegal_content(new_val)
|
||||
return if new_val == "f"
|
||||
if SiteSetting.contact_email.present? ||
|
||||
SiteSetting.email_address_to_report_illegal_content.present?
|
||||
|
||||
Reference in New Issue
Block a user