Changes between Version 1 and Version 2 of TracRestrictAccessPlugin
- Timestamp:
- May 14, 2015, 10:51:08 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracRestrictAccessPlugin
v1 v2 5 5 == Description 6 6 7 The goal of the plugin is to restrict the access to Trac to the users with TRAC_RESTRICT_ACCESSpermission.7 The goal of TracRestrictAccessPlugin is to restrict the access to Trac to the users with {{{TRAC_RESTRICT_ACCESS}}} permission. 8 8 9 9 This 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}}}). 12 12 13 14 15 Thanks to the author of PrivateTicketsPlugin where I took the idea to restrict the view of tickets. 16 17 See also: PrivateTicketsPlugin, PrivateWikiPlugin, TracFineGrainedPermissions 13 18 14 19 … … 35 40 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 36 41 42 You 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 44 Then to limit access to some users simply give them the permission 45 {{{TRAC_RESTRICT_ACCESS}}} 46 47 48 == Example 49 50 Example of {{{trac.ini}}}: 51 {{{ 52 [components] 53 ... 54 restrictaccess.* = enabled 55 ... 56 57 [trac] 58 ... 59 permission_policies = RestrictAccessPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy 60 }}} 61 62 37 63 == Recent Changes 38 64