diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-04 15:05:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-04 15:05:38 +0000 |
commit | 04766697357b29521515e7c71ae5139e04dd5ba2 (patch) | |
tree | e51f4c5770517801ee3772dfaf3d5bfb93b00a24 /db/migrate/093_add_wiki_pages_protected.rb | |
parent | 556df99456bf579057213157eb593c6a0dea0676 (diff) | |
download | redmine-04766697357b29521515e7c71ae5139e04dd5ba2.tar.gz redmine-04766697357b29521515e7c71ae5139e04dd5ba2.zip |
Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes).
New permission added: protect wiki pages. Once a page is protected, it can be edited/renamed/deleted only by users who have this permission.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1415 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/093_add_wiki_pages_protected.rb')
-rw-r--r-- | db/migrate/093_add_wiki_pages_protected.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/093_add_wiki_pages_protected.rb b/db/migrate/093_add_wiki_pages_protected.rb new file mode 100644 index 000000000..49720fbb7 --- /dev/null +++ b/db/migrate/093_add_wiki_pages_protected.rb @@ -0,0 +1,9 @@ +class AddWikiPagesProtected < ActiveRecord::Migration + def self.up + add_column :wiki_pages, :protected, :boolean, :default => false, :null => false + end + + def self.down + remove_column :wiki_pages, :protected + end +end |