Changes between Version 29 and Version 30 of PrivateWikiPlugin
- Timestamp:
- Mar 11, 2015, 2:17:39 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PrivateWikiPlugin
v29 v30 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Restrict Access to sections of the Wiki =3 2 4 == Description == 3 = Restrict Access to sections of the Wiki 4 5 == Description 5 6 6 7 Allows you to protect wiki pages against access. 7 8 8 == Bugs/Feature Requests ==9 == Bugs/Feature Requests 9 10 10 11 Existing bugs and feature requests for PrivateWikiPlugin are … … 14 15 [/newticket?component=PrivateWikiPlugin&owner=natewlew new ticket]. 15 16 16 == Download == 17 [[TicketQuery(component=PrivateWikiPlugin&group=type,format=progress)]] 18 19 == Download 17 20 18 21 Download the [download:privatewikiplugin zipped source], check out [/svn/privatewikiplugin using Subversion], or [source:privatewikiplugin browse the source] with Trac. 19 22 20 = Installation Help = 21 1. Install the plugin (either for a single project, or globally). See the details on how to install a trac plugin at: [trac:TracPlugins] 23 == Installation 24 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] 22 26 23 27 ''Latest Development Branch:'' … … 25 29 easy_install https://trac-hacks.org/svn/privatewikiplugin/trunk/ 26 30 }}} 27 2. Be sure that the plugin is enabled. Add `privatewiki.api.privatewikisystem = enabled` to trac.ini (in the [components] subheading). 28 * Alternatively, this can be enabled in the Web Admin section of the website as well 29 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, particular care will need to be taken to ensure the correct order. If `AuthzPolicy` is used to implement TracFineGrainedPermissions, then the order should most likely be `AuthzPolicy, PrivateWikiSystem, DefaultPermissionPolicy, LegacyAttachmentPolicy`. 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`. 30 33 31 34 Before: 32 35 {{{ 33 36 #!ini … … 35 38 permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy 36 39 }}} 37 40 After: 38 41 {{{ 39 42 #!ini … … 42 45 }}} 43 46 44 == Us e ==47 == Usage 45 48 46 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 _.49 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 _: 47 50 48 51 {{{ … … 52 55 }}} 53 56 54 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. 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 page so any restrictions on one will restrict the access of the other. 55 58 56 == Recent Changes ==59 == Recent Changes 57 60 58 61 [[ChangeLog(privatewikiplugin, 3)]] 59 62 60 == Author/Contributors ==63 == Author/Contributors 61 64 62 65 '''Author:''' [wiki:eric256] [[BR]] 63 '''Maintainer:''' [ wiki:natewlew] [[BR]]66 '''Maintainer:''' [[Maintainer]] [[BR]] 64 67 '''Contributors:'''