diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-05 12:52:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-05 12:52:57 +0000 |
commit | 8cf42fabf63277c157793576f8a70176cc65898d (patch) | |
tree | 17247129c0695a399b323cea28c39fe6ade73508 /app/models/wiki_page.rb | |
parent | da6c1492757a936ff18bb16112b00d3bfbfa4dcc (diff) | |
download | redmine-8cf42fabf63277c157793576f8a70176cc65898d.tar.gz redmine-8cf42fabf63277c157793576f8a70176cc65898d.zip |
Add permission option to wiki page activity provider.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5326 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r-- | app/models/wiki_page.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 923f381b7..3c1679716 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -32,6 +32,7 @@ class WikiPage < ActiveRecord::Base acts_as_searchable :columns => ['title', 'text'], :include => [{:wiki => :project}, :content], + :permission => :view_wiki_pages, :project_key => "#{Wiki.table_name}.project_id" attr_accessor :redirect_existing_links |