from https://trac-hacks.org/wiki/PrivateWikiPlugin
---------------------------------------------------------------------

Contents

 1. Description
 2. Bugs/Feature Requests
 3. Download
 4. Source
 5. Installation
 6. Usage
 7. Recent Changes
 8. Author/Contributors

Restrict Access to sections of the Wiki

Description

This plugin allows you to protect wiki pages against access.

Bugs/Feature Requests

Existing bugs and feature requests for PrivateWikiPlugin are here.

If you have any issues, create a new ticket.


defect
       10 / 15


 task
       1 / 1

Download

Download the zipped source from here.

Source

Check out using Subversion, or browse the source with Trac.

Installation

 1. Install the plugin, either for a single project or globally. See
    the details on how to install a trac plugin at TracPlugins. For
    the latest development branch:

    easy_install https://trac-hacks.org/svn/privatewikiplugin/trunk/

 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.
 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.

    Before:

    [trac]
    permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy

    After:

    [trac]
    permission_policies = PrivateWikiSystem, DefaultPermissionPolicy, LegacyAttachmentPolicy

Usage

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 _:

[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_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.

Recent Changes

13400 by rjollos on 2013-09-22 09:41:00
    Import set from trac.util.compat.
13372 by natewlew on 2013-08-31 23:53:06
    Fix for missing WIKI_CREATE privilige check. Private page assumes
    an edit privilege can create.
13371 by natewlew on 2013-08-31 23:23:57
    Creating Trunk
    (more)

Author/Contributors

Author: eric256
Maintainer: natewlew
Contributors:

Last modified 3 weeks ago Last modified on Nov 6, 2015, 4:18:46 PM

  * Tags
  * 0.11
  * 0.12
  * 1.0
  * bsd-license
  * eric256
  * natewlew
  * permissions
  * plugin
  * private
  * sensitive
  * wiki

[                    ]
[Edit this page]
[Attach file]
Download in other formats:

  * Plain Text

---------------------------------------------------------------------
