wiki:TracPermissions

Version 2 (modified by anonymous, 15 years ago) (diff)

--

网站建设网站推广 google推广租车 上海租车汽车租赁 租车http://www.shrentcar.com/上海租车 汽车租赁租车 http://www.shrentcar.com/how.htm/上海租车汽车租赁 数据恢复预订机票 英语翻译机票 机票预订机票 vitiligol防静电/防静电产品 防静电/防静电椅子翻译 三亚三亚旅游 数据修复数据恢复 机票成人用品 设计广告设计 印刷成人用品, 印刷注册公司公司注册 注册上海公司公司注册公司注册 注册公司注册上海公司注册公司 公司注册注册公司 注册香港公公司注册 注册香港公司注册香港公司 注册香港公司香港公司

Trac Permissions

Trac uses a flexible permission system to control what different users can do in the system.

When a user first uses a system he/she will be able to do certain things. Exactly what he/she can do depend on which privileges you have granted to the special user anonymous. In addition to these privileges different users can be granted additional rights as soon as they login into the system.

Available privileges

  • TRAC_ADMIN
  • LOG_VIEW
  • FILE_VIEW
  • CHANGESET_VIEW
  • BROWSER_VIEW
  • TICKET_VIEW, TICKET_CREATE, TICKET_MODIFY, TICKET_ADMIN
  • REPORT_VIEW, REPORT_CREATE, REPORT_MODIFY, REPORT_DELETE, REPORT_ADMIN
  • WIKI_VIEW, WIKI_CREATE, WIKI_MODIFY, WIKI_DELETE, WIKI_ADMIN
  • TIMELINE_VIEW
  • SEARCH_VIEW
  • CONFIG_VIEW

The something_ADMIN privileges are just shortcuts that can be used to grant a user all the something privileges in one go. Having TRAC_ADMIN is like being root on a *NIX system, it will let you do anything you want.

Granting privileges

Currently the only way to grant privileges to users is by using the trac-admin script. The current set of privileges can be listed with the following command:

  $ trac-admin /path/to/my.db permission list

This command will let the user bob to delete reports:

  $ trac-admin /path/to/my.db permission add bob REPORT_DELETE

Default permissions

Granting privileges to the special user anonymous can be used to control what an anonymous user can do before they have logged in.

In the same way, privileges granted to the special user authenticated will apply to any authenticated (logged in) user.