Edgewall Software
Modify

Opened 15 years ago

Last modified 8 years ago

#8332 new enhancement

trac-admin permission masks

Reported by: anatoly techtonik <techtonik@…> Owned by:
Priority: normal Milestone: unscheduled
Component: admin/console Version: none
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It would be convenient to use masks in trac-admin permission command.

permission list [user]
        -- List permission rules

permission add <user> <action> [action] [...]
        -- Add a new permission rule

permission remove <user> <action> [action] [...]
        -- Remove permission rule

i.e.

permission list [user] [-m mask]
        -- List permission rules

$ trac-admin list -m *_VIEW
User    Action
----------------------
user1   MILESTONE_VIEW
user1   REPORT_VIEW
user2   ROADMAP_VIEW


Available actions:
  BROWSER_VIEW, CHANGESET_VIEW, CONFIG_VIEW, EMAIL_VIEW, FILE_VIEW,
...
$ trac-admin trac permission add user1 *_VIEW

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 15 years ago

Milestone: 0.13

Maybe, but really this should evolve into handling fine grained permissions, and the old style *_VIEW permissions should go away.

comment:2 by Remy Blank, 14 years ago

Milestone: next-major-0.1Xunscheduled

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.