FIX: check if allow_staff_user_custom_field exisits
This commit is contained in:
parent
2f5dfebcdb
commit
2f34ae5778
|
@ -201,10 +201,10 @@ after_initialize do
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO Drop after Discourse 2.6.0 release
|
# TODO Drop after Discourse 2.6.0 release
|
||||||
if respond_to?(:whitelist_staff_user_custom_field)
|
if respond_to?(:allow_staff_user_custom_field)
|
||||||
whitelist_staff_user_custom_field(COUNT_FIELD)
|
|
||||||
else
|
|
||||||
allow_staff_user_custom_field(COUNT_FIELD)
|
allow_staff_user_custom_field(COUNT_FIELD)
|
||||||
|
else
|
||||||
|
whitelist_staff_user_custom_field(COUNT_FIELD)
|
||||||
end
|
end
|
||||||
|
|
||||||
add_to_class(Guardian, :can_delete_user_notes?) do
|
add_to_class(Guardian, :can_delete_user_notes?) do
|
||||||
|
|
Loading…
Reference in New Issue