diff options
Diffstat (limited to 'app/models/news.rb')
-rw-r--r-- | app/models/news.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/news.rb b/app/models/news.rb index 19a55bda4..6ade4f4f1 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -26,7 +26,8 @@ class News < ActiveRecord::Base validates_length_of :summary, :maximum => 255 attr_protected :id - acts_as_attachable :delete_permission => :manage_news + acts_as_attachable :edit_permission => :manage_news, + :delete_permission => :manage_news acts_as_searchable :columns => ['title', 'summary', "#{table_name}.description"], :scope => preload(:project) acts_as_event :url => Proc.new {|o| {:controller => 'news', :action => 'show', :id => o.id}} |