Restrict access to sections of the Wiki
This plugin allows you to protect wiki pages against access.
If you have any issues, create a new ticket.
Download the zipped source from here.
Install the plugin, either for a single project or globally. See the details on how to install a plugin at TracPlugins.
To install the latest development branch, perform the following steps:
- Run the following:
- Enable the plugin in your
trac.inifile:Alternatively, this plugin can be enabled in the Web Admin section of your Trac installation.
[components] privatewiki.* = enabled
PrivateWikiPolicybefore the default entries (order is important!). If permission policies from other plugins are used, care will need to be taken to ensure the correct order. If
AuthzPolicyis used to implement TracFineGrainedPermissions, then the order is most likely
AuthzPolicy, PrivateWikiPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy.
Before:[trac] permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy
After:[trac] permission_policies = PrivateWikiPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
trac.ini add a
privatewikis section, under that add a private_wikis field and list the Pages that you want to protect. Enter the pages in all upper case and replace /'s with _:
[privatewikis] private_wikis = IT,FOOBAR,FOOBAR_INFO
Once you have added this you will have some new permissions in the admin section. For example you will have
PRIVATE_EDIT_FOO_BAR which will control which users can view or edit FooBar and anything below it like FooBar/Test. The downside is that this plugin sees FooBar and Foobar as the same page, so any restrictions on one will restrict the access of the other.
- 16496 by rjollos on 2017-04-15 08:21:36
- 16366 by rjollos on 2017-03-22 19:49:49
TracPrivateWiki 1.1.0: Removing special handling of anonymous user
Note: name of permission policy and component rule have changed.
See revised installation instructions when upgrading.
- 15906 by natewlew on 2016-10-09 18:24:30
Commit patch from #12891