lib/scrivito/user_definition.rb in scrivito_sdk-0.70.2 vs lib/scrivito/user_definition.rb in scrivito_sdk-0.71.0.rc1
- old
+ new
@@ -183,11 +183,11 @@
# else
# "You are only allowed to edit the English site."
# end
# end
#
- # user.restrict_obj_publish(using: :_obj_class_name) do |obj_class_name|
- # if obj_class_name == 'BlogPost'
+ # user.restrict_obj_publish(using: :_obj_class) do |obj_class|
+ # if obj_class == 'BlogPost'
# false
# else
# 'You are only allowed to edit Blog Posts.'
# end
# end