Commit dadc491c2bef921d618c338f8d6daf64b64a70b1
1 parent
9c003f99
Exists in
master
and in
29 other branches
tolerance-time-plugin: solved permission problems
Showing
4 changed files
with
3 additions
and
2 deletions
Show diff stats
plugins/tolerance_time/lib/tolerance_time_plugin.rb
plugins/tolerance_time/lib/tolerance_time_plugin/publication.rb
... | ... | @@ -2,6 +2,7 @@ class ToleranceTimePlugin::Publication < Noosfero::Plugin::ActiveRecord |
2 | 2 | belongs_to :target, :polymorphic => true |
3 | 3 | validates_presence_of :target_id, :target_type |
4 | 4 | validates_uniqueness_of :target_id, :scope => :target_type |
5 | + attr_accessible :target | |
5 | 6 | |
6 | 7 | class << self |
7 | 8 | def find_by_target(target) | ... | ... |
plugins/tolerance_time/lib/tolerance_time_plugin/tolerance.rb
... | ... | @@ -4,4 +4,5 @@ class ToleranceTimePlugin::Tolerance < Noosfero::Plugin::ActiveRecord |
4 | 4 | validates_uniqueness_of :profile_id |
5 | 5 | validates_numericality_of :content_tolerance, :only_integer => true, :allow_nil => true |
6 | 6 | validates_numericality_of :comment_tolerance, :only_integer => true, :allow_nil => true |
7 | + attr_accessible :profile, :content_tolerance, :comment_tolerance | |
7 | 8 | end | ... | ... |
plugins/tolerance_time/views/tolerance_time_plugin_myprofile/index.html.erb