Changes between Version 2 and Version 3 of TracRestrictAccessPlugin
- Timestamp:
- May 15, 2015, 12:06:08 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracRestrictAccessPlugin
v2 v3 5 5 == Description 6 6 7 Th e goal of TracRestrictAccessPlugin is to restrict the access to Trac to the users with {{{TRAC_RESTRICT_ACCESS}}}permission.7 This plugin allows you to restrict access to Trac to the users that have the `TRAC_RESTRICT_ACCESS` permission. 8 8 9 9 This mean that the restricted users can: 10 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}}}).11 - only view tickets that concern themselves, ie they are {{{reporter}}} or {{{owner}}} or on the {{{cc}}} list. 12 12 13 14 15 Thanks to the author of PrivateTicketsPlugin where I took the idea to restrict the view of tickets. 13 Thanks to the author of PrivateTicketsPlugin, which inspired this plugin. 16 14 17 15 See also: PrivateTicketsPlugin, PrivateWikiPlugin, TracFineGrainedPermissions 18 19 16 20 17 == !Bugs/Feature Requests … … 40 37 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 41 38 42 You must enable d 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.39 You must enable it through the line {{{restrictaccess.* = enabled}}} in your `trac.ini` file. You also need to add {{{RestrictAccessPolicy}}} to your {{{permission_policies}}} setting in the `trac.ini` file. It must be before the {{{DefaultPermissionPolicy}}}. See below for an example. 43 40 44 Then to limit access to some users simply give them the permission 45 {{{TRAC_RESTRICT_ACCESS}}} 46 41 Then to limit access to some users simply give them the permission `TRAC_RESTRICT_ACCESS`. 47 42 48 43 == Example 49 44 50 Example of {{{trac.ini}}}:51 {{{ 45 Example of `trac.ini`: 46 {{{#!ini 52 47 [components] 53 48 ... … … 60 55 }}} 61 56 62 63 57 == Recent Changes 64 58