Changes between Version 30 and Version 31 of PrivateWikiPlugin
- Timestamp:
- Nov 6, 2015, 3:18:46 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PrivateWikiPlugin
v30 v31 5 5 == Description 6 6 7 Allows you to protect wiki pages against access.7 This plugin allows you to protect wiki pages against access. 8 8 9 9 == Bugs/Feature Requests 10 10 11 11 Existing bugs and feature requests for PrivateWikiPlugin are 12 [ query:?status=new&status=assigned&status=reopened&group=&component=PrivateWikiPlugin&order=priorityhere].12 [report:9?COMPONENT=PrivateWikiPlugin here]. 13 13 14 14 If you have any issues, create a 15 [/newticket?component=PrivateWikiPlugin &owner=natewlewnew ticket].15 [/newticket?component=PrivateWikiPlugin new ticket]. 16 16 17 17 [[TicketQuery(component=PrivateWikiPlugin&group=type,format=progress)]] … … 19 19 == Download 20 20 21 Download the [download:privatewikiplugin zipped source], check out [/svn/privatewikiplugin using Subversion], or [source:privatewikiplugin browse the source] with Trac. 21 Download the zipped source from [export:privatewikiplugin here]. 22 23 == Source 24 25 Check out [/svn/privatewikiplugin using Subversion], or [source:privatewikiplugin browse the source] with Trac. 22 26 23 27 == Installation 24 28 25 1. Install the plugin, either for a single project or globally. See the details on how to install a trac plugin at: [trac:TracPlugins] 26 27 ''Latest Development Branch:'' 29 1. Install the plugin, either for a single project or globally. See the details on how to install a trac plugin at [trac:TracPlugins]. For the latest development branch: 28 30 {{{#!sh 29 31 easy_install https://trac-hacks.org/svn/privatewikiplugin/trunk/ 30 31 2. Be sure that the plugin is enabled: add `privatewiki.api.privatewikisystem = enabled` to `trac.ini` (in the `[components]` subheading). Alternatively, this can be enabled in the Web Admin section of your Trac installation.32 3. In `trac.ini` modify the `permission_policies` to include `PrivateWikiSystem` before 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 `AuthzPolicy` is used to implement TracFineGrainedPermissions, then the order is most likely `AuthzPolicy, PrivateWikiSystem, DefaultPermissionPolicy, LegacyAttachmentPolicy`.32 }}} 33 1. Be sure that the plugin is enabled: add `privatewiki.api.privatewikisystem = enabled` to `trac.ini` in the `[components]` subheading. Alternatively, this can be enabled in the Web Admin section of your Trac installation. 34 1. In `trac.ini` modify the `permission_policies` to include `PrivateWikiSystem` before 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 `AuthzPolicy` is used to implement TracFineGrainedPermissions, then the order is most likely `AuthzPolicy, PrivateWikiSystem, DefaultPermissionPolicy, LegacyAttachmentPolicy`. 33 35 34 36 Before: 35 {{{ 36 #!ini 37 {{{#!ini 37 38 [trac] 38 39 permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy 39 40 }}} 41 40 42 After: 41 {{{ 42 #!ini 43 {{{#!ini 43 44 [trac] 44 45 permission_policies = PrivateWikiSystem, DefaultPermissionPolicy, LegacyAttachmentPolicy … … 49 50 In `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 _: 50 51 51 {{{ 52 #!ini 52 {{{#!ini 53 53 [privatewikis] 54 54 private_wikis = IT,FOOBAR,FOOBAR_INFO 55 55 }}} 56 56 57 Once you 've added this you will have some new permissions in the admin section. For example you'll have PRIVATE_VIEW_FOO and 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 pageso any restrictions on one will restrict the access of the other.57 Once you have added this you will have some new permissions in the admin section. For example you will have PRIVATE_VIEW_FOO and 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 Foo'''B'''ar and Foo'''b'''ar as the same page, so any restrictions on one will restrict the access of the other. 58 58 59 59 == Recent Changes