diff --git a/plugins/require_auth_to_comment/features/require_auth_to_comment.feature b/plugins/require_auth_to_comment/features/require_auth_to_comment.feature index 9a8ce8d..2ef3bbd 100644 --- a/plugins/require_auth_to_comment/features/require_auth_to_comment.feature +++ b/plugins/require_auth_to_comment/features/require_auth_to_comment.feature @@ -1,7 +1,7 @@ Feature: require authentication to comment Background: - Given plugin RequireAuthToCommentPlugin is enabled on environment + Given plugin RequireAuthToComment is enabled on environment And the following users | login | | bozo | diff --git a/plugins/require_auth_to_comment/lib/ext/profile.rb b/plugins/require_auth_to_comment/lib/ext/profile.rb index c9871e3..c790a6b 100644 --- a/plugins/require_auth_to_comment/lib/ext/profile.rb +++ b/plugins/require_auth_to_comment/lib/ext/profile.rb @@ -3,4 +3,8 @@ require_dependency 'profile' class Profile settings_items :allow_unauthenticated_comments, :type => :boolean attr_accessible :allow_unauthenticated_comments + + descendants.each do |descendant| + descendant.attr_accessible :allow_unauthenticated_comments + end end -- libgit2 0.21.2