DEV: Raise errors for (black|white)list accesses (#15174)

These have been deprecated for a while
This commit is contained in:
Daniel Waterworth
2021-12-02 12:16:55 -06:00
committed by GitHub
parent 9b5836aa1d
commit bd10f113e9
2 changed files with 5 additions and 5 deletions

View File

@ -157,7 +157,7 @@ class Plugin::Instance
end
def whitelist_staff_user_custom_field(field)
Discourse.deprecate("whitelist_staff_user_custom_field is deprecated, use the allow_staff_user_custom_field.", drop_from: "2.6")
Discourse.deprecate("whitelist_staff_user_custom_field is deprecated, use the allow_staff_user_custom_field.", drop_from: "2.6", raise_error: true)
allow_staff_user_custom_field(field)
end
@ -166,7 +166,7 @@ class Plugin::Instance
end
def whitelist_public_user_custom_field(field)
Discourse.deprecate("whitelist_public_user_custom_field is deprecated, use the allow_public_user_custom_field.", drop_from: "2.6")
Discourse.deprecate("whitelist_public_user_custom_field is deprecated, use the allow_public_user_custom_field.", drop_from: "2.6", raise_error: true)
allow_public_user_custom_field(field)
end
@ -319,7 +319,7 @@ class Plugin::Instance
end
def topic_view_post_custom_fields_whitelister(&block)
Discourse.deprecate("topic_view_post_custom_fields_whitelister is deprecated, use the topic_view_post_custom_fields_allowlister.", drop_from: "2.6")
Discourse.deprecate("topic_view_post_custom_fields_whitelister is deprecated, use the topic_view_post_custom_fields_allowlister.", drop_from: "2.6", raise_error: true)
topic_view_post_custom_fields_allowlister(&block)
end