Allows individual wiki pages to be set as private. Private pages are visible only to roles with "View private wiki pages" permission.
Plugin is based on Redmine Private Wiki by Oleg Kandaurov.
The main goal of this fork is to provide ChiliProject compatibility and test coverage.
- Privacy is checked for page's ancestors. If a parent page is private, all its descendants will be considered private too.
- Uses jQuery instead of Prototype.
- Follow the instructions at https://www.chiliproject.org/projects/chiliproject/wiki/Plugin_Install
- Two new permissions will be available for roles: View private wiki pages and Manage private wiki pages (to manage privacy of the page)
- Page can be changed to private using the contextual links on the wiki page
Plugin was tested with ChiliProject 3.1.0 and Ruby 1.9.3.
Patches, pull requests and forks are welcome, but if possible, provide proper test coverage.
You can also use Travis-CI integration based on the chiliproject_test_plugin.
For running tests, see also Redmine's instructions.
Setup and migrate your test database:
bundle exec rake db:drop db:create db:migrate redmine:load_default_data db:migrate:plugins RAILS_ENV=test
To run tests, execute the following task from main ChiliProject's directory:
bundle exec rake test:engines:all PLUGIN=chiliproject_private_wiki
You can also execute individual test files, however you need to run this rake task before execution:
bundle exec rake test:plugins:setup_plugin_fixtures
This plugin is licensed under the MIT license.