Changes between Version 1 and Version 2 of TracRestrictAccessPlugin


Ignore:
Timestamp:
May 14, 2015, 10:51:08 AM (9 years ago)
Author:
Giuseppe Ursino
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracRestrictAccessPlugin

    v1 v2  
    55== Description
    66
    7 The goal of the plugin is to restrict the access to Trac to the users with TRAC_RESTRICT_ACCESS permission.
     7The goal of TracRestrictAccessPlugin is to restrict the access to Trac to the users with {{{TRAC_RESTRICT_ACCESS}}} permission.
    88
    99This mean that the restricted users can:
    10 - only view wiki pages under the directory "/trac/wiki/SharedPages/"
    11 - only view tickets that concern themselves. (ie: they are reporter or owner or cc).
     10- only view wiki pages under the directory {{{/trac/wiki/SharedPages/}}}
     11- only view tickets that concern themselves. (ie: they are {{{reporter}}} or {{{owner}}} or {{{cc}}}).
    1212
     13
     14
     15Thanks to the author of PrivateTicketsPlugin where I took the idea to restrict the view of tickets.
     16
     17See also: PrivateTicketsPlugin, PrivateWikiPlugin, TracFineGrainedPermissions
    1318
    1419
     
    3540General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    3641
     42You must enabled it ({{{restrictaccess.* = enabled}}}) and also add {{{RestrictAccessPolicy}}} to your {{{permission_policies}}} setting in {{{trac.ini}}}. It must be before the {{{DefaultPermissionPolicy}}}. See below for an example if you don't have any other policies.
     43
     44Then to limit access to some users simply give them the permission
     45{{{TRAC_RESTRICT_ACCESS}}}
     46
     47
     48== Example
     49
     50Example of {{{trac.ini}}}:
     51{{{
     52[components]
     53...
     54restrictaccess.* = enabled
     55...
     56
     57[trac]
     58...
     59permission_policies = RestrictAccessPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
     60}}}
     61
     62
    3763== Recent Changes
    3864