Changes between Version 1 and Version 2 of TracPermissions
- Timestamp:
- 11/18/04 18:02:59 (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracPermissions
v1 v2 1 1 == Trac Permissions == 2 [[TracGuideToc]] 2 3 3 Trac uses a flexible permission system to control what different users can do 4 in the system. 4 Trac uses a simple but flexible permission system to control what users can and can't access. 5 5 6 When a user first uses a system he/she will be able to do certain things. 7 Exactly what he/she can do depend on which privileges you have granted to 8 the special user {{{anonymous}}}. 9 In addition to these privileges different users can be granted additional 10 rights as soon as they login into the system. 6 Permission privilegies are managed using the [wiki:TracAdmin trac-admin] tool. 7 8 Regular visitors, non-authenticated users, accessing the system are assigned the default 9 role (''user'') named {{{anonymous}}}. 10 Assign permissions to the {{{anonymous}}} user to set privilegies for non-authenticated/guest users. 11 12 In addition to these privileges users can be granted additional individual 13 rights in effect when authenticated and logged into the system. 11 14 12 15 === Available privileges === … … 18 21 * {{{BROWSER_VIEW}}} 19 22 * {{{TICKET_VIEW, TICKET_CREATE, TICKET_MODIFY, TICKET_ADMIN}}} 20 * {{{REPORT_VIEW, REPORT_CREATE, REPORT_MODIFY, REPORT_DELETE, REPORT_ADMIN }}}23 * {{{REPORT_VIEW, REPORT_CREATE, REPORT_MODIFY, REPORT_DELETE, REPORT_ADMIN, REPORT_SQL_VIEW}}} 21 24 * {{{WIKI_VIEW, WIKI_CREATE, WIKI_MODIFY, WIKI_DELETE, WIKI_ADMIN}}} 25 * {{{MILESTONE_VIEW, MILESTONE_CREATE, MILESTONE_MODIFY, MILESTONE_DELETE}}} 26 * {{{ROADMAP_VIEW, ROADMAP_ADMIN}}} 22 27 * {{{TIMELINE_VIEW}}} 23 28 * {{{SEARCH_VIEW}}} … … 34 39 35 40 {{{ 36 $ trac-admin /path/to/ my.dbpermission list41 $ trac-admin /path/to/projenv permission list 37 42 }}} 38 43 39 This command will let the user ''bob'' todelete reports:44 This command will let the user ''bob'' delete reports: 40 45 41 46 {{{ 42 $ trac-admin /path/to/my.db permission add bob REPORT_DELETE 47 $ trac-admin /path/to/projenv permission add bob REPORT_DELETE 48 }}} 49 50 === Permission groups === 51 52 Permissions can be grouped together to form roles such as 53 ''developer'', ''admin'', etc. 54 55 {{{ 56 $ trac-admin /path/to/projenv permission add developer WIKI_ADMIN 57 $ trac-admin /path/to/projenv permission add developer REPORT_ADMIN 58 $ trac-admin /path/to/projenv permission add developer TICKET_MODIFY 59 $ trac-admin /path/to/projenv permission add bob developer 60 $ trac-admin /path/to/projenv permission add john developer 43 61 }}} 44 62 … … 49 67 50 68 In the same way, privileges granted to the special user ''authenticated'' will apply to any authenticated (logged in) user. 69 70 ---- 71 See also: TracAdmin, TracGuide