Edgewall Software

Changes between Version 100 and Version 101 of TracPermissions


Ignore:
Timestamp:
Mar 19, 2017, 2:22:25 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Improve markup.

Legend:

Unmodified
Added
Removed
Modified
  • TracPermissions

    v100 v101  
    1414
    1515To access this tab, a user must have one of the following permissions: `TRAC_ADMIN`, `PERMISSION_ADMIN`, `PERMISSION_GRANT`, `PERMISSION_REVOKE`. The permissions can be granted using the `trac-admin` command (more on `trac-admin` below):
    16 {{{
    17   $ trac-admin /path/to/projenv permission add bob TRAC_ADMIN
     16{{{#!sh
     17$ trac-admin /path/to/projenv permission add bob TRAC_ADMIN
    1818}}}
    1919
     
    3636=== Repository Browser
    3737
    38 || `BROWSER_VIEW` || View directory listings in the [wiki:TracBrowser repository browser] ||
    39 || `LOG_VIEW` || View revision logs of files and directories in the [wiki:TracBrowser repository browser] ||
    40 || `FILE_VIEW` || View files in the [wiki:TracBrowser repository browser] ||
    41 || `CHANGESET_VIEW` || View [wiki:TracChangeset repository check-ins] ||
     38|| `BROWSER_VIEW` || View directory listings in the [TracBrowser repository browser] ||
     39|| `LOG_VIEW` || View revision logs of files and directories in the [TracBrowser repository browser] ||
     40|| `FILE_VIEW` || View files in the [TracBrowser repository browser] ||
     41|| `CHANGESET_VIEW` || View [TracChangeset repository check-ins] ||
    4242
    4343=== Ticket System
    4444
    45 || `TICKET_VIEW` || View existing [wiki:TracTickets tickets] and perform [wiki:TracQuery ticket queries] ||
    46 || `TICKET_CREATE` || Create new [wiki:TracTickets tickets] ||
    47 || `TICKET_APPEND` || Add comments or attachments to [wiki:TracTickets tickets] ||
    48 || `TICKET_CHGPROP` || Modify [wiki:TracTickets ticket] properties (priority, assignment, keywords, etc.) with the following exceptions: edit description field, add/remove other users from cc field when logged in, and set email to pref ||
    49 || `TICKET_MODIFY` || Includes both `TICKET_APPEND` and `TICKET_CHGPROP`, and in addition allows resolving [wiki:TracTickets tickets]. Tickets can be assigned to users through a [TracTickets#Assign-toasDrop-DownList drop-down list] when the list of possible owners has been restricted. ||
     45|| `TICKET_VIEW` || View existing [TracTickets tickets] and perform [TracQuery ticket queries] ||
     46|| `TICKET_CREATE` || Create new [TracTickets tickets] ||
     47|| `TICKET_APPEND` || Add comments or attachments to [TracTickets tickets] ||
     48|| `TICKET_CHGPROP` || Modify [TracTickets ticket] properties (priority, assignment, keywords, etc.) with the following exceptions: edit description field, add/remove other users from cc field when logged in, and set email to pref ||
     49|| `TICKET_MODIFY` || Includes both `TICKET_APPEND` and `TICKET_CHGPROP`, and in addition allows resolving [TracTickets tickets]. Tickets can be assigned to users through a [TracTickets#Assign-toasDrop-DownList drop-down list] when the list of possible owners has been restricted. ||
    5050|| `TICKET_EDIT_CC` || Full modify cc field ||
    5151|| `TICKET_EDIT_DESCRIPTION` || Modify description field ||
    5252|| `TICKET_EDIT_COMMENT` || Modify another user's comments. Any user can modify their own comments by default. ||
    53 || `TICKET_BATCH_MODIFY` || [wiki:TracBatchModify Batch modify] tickets ||
     53|| `TICKET_BATCH_MODIFY` || [TracBatchModify Batch modify] tickets ||
    5454|| `TICKET_ADMIN` || All `TICKET_*` permissions, deletion of ticket attachments and modification of the reporter field, which grants ability to create a ticket on behalf of another user (it will appear that another user created the ticket). It also allows managing ticket properties through the web administration module. ||
    5555
     
    6363|| `MILESTONE_DELETE` || Delete milestones ||
    6464|| `MILESTONE_ADMIN` || All `MILESTONE_*` permissions ||
    65 || `ROADMAP_VIEW` || View the [wiki:TracRoadmap roadmap] page, is not (yet) the same as MILESTONE_VIEW, see [trac:#4292 #4292] ||
     65|| `ROADMAP_VIEW` || View the [TracRoadmap roadmap] page, is not (yet) the same as MILESTONE_VIEW, see [trac:#4292 #4292] ||
    6666|| `ROADMAP_ADMIN` || to be removed with [trac:#3022 #3022], replaced by MILESTONE_ADMIN ||
    6767
    6868=== Reports
    6969
    70 || `REPORT_VIEW` || View [wiki:TracReports reports], i.e. the "view tickets" link. ||
    71 || `REPORT_SQL_VIEW` || View the underlying SQL query of a [wiki:TracReports report] ||
    72 || `REPORT_CREATE` || Create new [wiki:TracReports reports] ||
    73 || `REPORT_MODIFY` || Modify existing [wiki:TracReports reports] ||
    74 || `REPORT_DELETE` || Delete [wiki:TracReports reports] ||
     70|| `REPORT_VIEW` || View [TracReports reports], i.e. the "view tickets" link. ||
     71|| `REPORT_SQL_VIEW` || View the underlying SQL query of a [TracReports report] ||
     72|| `REPORT_CREATE` || Create new [TracReports reports] ||
     73|| `REPORT_MODIFY` || Modify existing [TracReports reports] ||
     74|| `REPORT_DELETE` || Delete [TracReports reports] ||
    7575|| `REPORT_ADMIN` || All `REPORT_*` permissions ||
    7676
    7777=== Wiki System
    7878
    79 || `WIKI_VIEW` || View existing [wiki:TracWiki wiki] pages ||
    80 || `WIKI_CREATE` || Create new [wiki:TracWiki wiki] pages ||
    81 || `WIKI_MODIFY` || Change [wiki:TracWiki wiki] pages ||
    82 || `WIKI_RENAME` || Rename [wiki:TracWiki wiki] pages ||
    83 || `WIKI_DELETE` || Delete [wiki:TracWiki wiki] pages and attachments ||
     79|| `WIKI_VIEW` || View existing [TracWiki wiki] pages ||
     80|| `WIKI_CREATE` || Create new [TracWiki wiki] pages ||
     81|| `WIKI_MODIFY` || Change [TracWiki wiki] pages ||
     82|| `WIKI_RENAME` || Rename [TracWiki wiki] pages ||
     83|| `WIKI_DELETE` || Delete [TracWiki wiki] pages and attachments ||
    8484|| `WIKI_ADMIN` || All `WIKI_*` permissions, plus the management of ''readonly'' pages. ||
    8585
     
    9292=== Others
    9393
    94 || `TIMELINE_VIEW` || View the [wiki:TracTimeline timeline] page ||
    95 || `SEARCH_VIEW` || View and execute [wiki:TracSearch search] queries ||
     94|| `TIMELINE_VIEW` || View the [TracTimeline timeline] page ||
     95|| `SEARCH_VIEW` || View and execute [TracSearch search] queries ||
    9696|| `CONFIG_VIEW` || Enables additional pages on ''About Trac'' that show the current configuration or the list of installed plugins ||
    97 || `EMAIL_VIEW` || Shows email addresses even if [wiki:TracIni#trac-section trac show_email_addresses] configuration option is false ||
     97|| `EMAIL_VIEW` || Shows email addresses even if [TracIni#trac-section trac show_email_addresses] configuration option is false ||
    9898
    9999== Creating New Privileges
    100100
    101 To create custom permissions, for example to be used in a custom workflow, enable the optional [trac:ExtraPermissionsProvider tracopt.perm.config_perm_provider.ExtraPermissionsProvider] component in the "Plugins" admin panel, and add the desired permissions to the `[extra-permissions]` section in your [wiki:TracIni#extra-permissions-section trac.ini]. For more information, please refer to the documentation  on the [wiki:TracIni#extra-permissions-section TracIni] page after enabling the component.
     101To create custom permissions, for example to be used in a custom workflow, enable the optional [trac:ExtraPermissionsProvider tracopt.perm.config_perm_provider.ExtraPermissionsProvider] component in the "Plugins" admin panel, and add the desired permissions to the `[extra-permissions]` section in your [TracIni#extra-permissions-section trac.ini]. For more information, please refer to the documentation  on the [TracIni#extra-permissions-section TracIni] page after enabling the component.
    102102
    103103== Granting Privileges
    104104
    105 You grant privileges to users using [wiki:TracAdmin trac-admin]. The current set of privileges can be listed with the following command:
    106 {{{
    107   $ trac-admin /path/to/projenv permission list
     105You grant privileges to users using [TracAdmin trac-admin]. The current set of privileges can be listed with the following command:
     106{{{#!sh
     107$ trac-admin /path/to/projenv permission list
    108108}}}
    109109
    110110This command will allow the user ''bob'' to delete reports:
    111 {{{
    112   $ trac-admin /path/to/projenv permission add bob REPORT_DELETE
     111{{{#!sh
     112$ trac-admin /path/to/projenv permission add bob REPORT_DELETE
    113113}}}
    114114
    115115The `permission add` command also accepts multiple privilege names:
    116 {{{
    117   $ trac-admin /path/to/projenv permission add bob REPORT_DELETE WIKI_CREATE
     116{{{#!sh
     117$ trac-admin /path/to/projenv permission add bob REPORT_DELETE WIKI_CREATE
    118118}}}
    119119
    120120Or add all privileges:
    121 {{{
    122   $ trac-admin /path/to/projenv permission add bob TRAC_ADMIN
     121{{{#!sh
     122$ trac-admin /path/to/projenv permission add bob TRAC_ADMIN
    123123}}}
    124124
     
    135135
    136136Permissions can be grouped together to form roles such as ''developer'', ''admin'', etc.
    137 {{{
    138   $ trac-admin /path/to/projenv permission add developer WIKI_ADMIN
    139   $ trac-admin /path/to/projenv permission add developer REPORT_ADMIN
    140   $ trac-admin /path/to/projenv permission add developer TICKET_MODIFY
    141   $ trac-admin /path/to/projenv permission add bob developer
    142   $ trac-admin /path/to/projenv permission add john developer
     137{{{#!sh
     138$ trac-admin /path/to/projenv permission add developer WIKI_ADMIN
     139$ trac-admin /path/to/projenv permission add developer REPORT_ADMIN
     140$ trac-admin /path/to/projenv permission add developer TICKET_MODIFY
     141$ trac-admin /path/to/projenv permission add bob developer
     142$ trac-admin /path/to/projenv permission add john developer
    143143}}}
    144144
     
    149149
    150150The following will add ''bob'' to the new group called ''beta_testers'' and then will assign WIKI_ADMIN permissions to that group. (Thus, ''bob'' will inherit the WIKI_ADMIN permission)
    151 {{{
    152    $ trac-admin /path/to/projenv permission add bob beta_testers
    153    $ trac-admin /path/to/projenv permission add beta_testers WIKI_ADMIN
    154 
     151{{{#!sh
     152$ trac-admin /path/to/projenv permission add bob beta_testers
     153$ trac-admin /path/to/projenv permission add beta_testers WIKI_ADMIN
    155154}}}
    156155
     
    160159
    161160This command will prevent the user ''bob'' from deleting reports:
    162 {{{
    163   $ trac-admin /path/to/projenv permission remove bob REPORT_DELETE
     161{{{#!sh
     162$ trac-admin /path/to/projenv permission remove bob REPORT_DELETE
    164163}}}
    165164
     
    167166
    168167You can also remove all privileges for a specific user:
    169 {{{
    170   $ trac-admin /path/to/projenv permission remove bob '*'
     168{{{#!sh
     169$ trac-admin /path/to/projenv permission remove bob '*'
    171170}}}
    172171
    173172Or one privilege for all users:
    174 {{{
    175   $ trac-admin /path/to/projenv permission remove '*' REPORT_ADMIN
     173{{{#!sh
     174$ trac-admin /path/to/projenv permission remove '*' REPORT_ADMIN
    176175}}}
    177176
     
    183182'''anonymous'''
    184183{{{
    185  BROWSER_VIEW
    186  CHANGESET_VIEW
    187  FILE_VIEW
    188  LOG_VIEW
    189  MILESTONE_VIEW
    190  REPORT_SQL_VIEW
    191  REPORT_VIEW
    192  ROADMAP_VIEW
    193  SEARCH_VIEW
    194  TICKET_VIEW
    195  TIMELINE_VIEW
    196  WIKI_VIEW
     184BROWSER_VIEW
     185CHANGESET_VIEW
     186FILE_VIEW
     187LOG_VIEW
     188MILESTONE_VIEW
     189REPORT_SQL_VIEW
     190REPORT_VIEW
     191ROADMAP_VIEW
     192SEARCH_VIEW
     193TICKET_VIEW
     194TIMELINE_VIEW
     195WIKI_VIEW
    197196}}}
    198197
    199198'''authenticated'''
    200199{{{
    201  TICKET_CREATE
    202  TICKET_MODIFY
    203  WIKI_CREATE
    204  WIKI_MODIFY 
     200TICKET_CREATE
     201TICKET_MODIFY
     202WIKI_CREATE
     203WIKI_MODIFY 
    205204}}}
    206205----