Modify

Opened 15 years ago

Closed 15 years ago

#6272 closed defect (worksforme)

permission swap

Reported by: kadel Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

in [field settings] in trac.ini TIME_RECORD act as TIME_VIEW and other way.

example: when i want hide internal field for TIME_VIEW, i must write this rule: internal.permission=TIME_RECORD.hide

using SVN Trac0.11 branch With Permissions

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Russ Tyndall

Sorry for the delay in response. I will look at this shortly.

comment:2 Changed 15 years ago by Russ Tyndall

Resolution: worksforme
Status: newclosed

Using the default config, everything seems to be working for me.

Changing

billable.permission = TIME_VIEW:hide

to

billable.permission = TIME_VIEW:disable

and back does pretty much exactly what I would expect when I have no time permissions. This indicates to me that perhaps it is a configuration error, or perhaps you misunderstand what the program does. It sounds like a misunderstanding though after rereading your comment.

Setting

billable.permission = TIME_VIEW:hide

causes the billable box to be hidden whenever anyone does not have time_view permission. The format is PERMISSION_NAME:Action-to-take-if-perm-check-fails

HTH, Russ


Default Config:

[field settings] # per field permissions

# a list of all the fields to apply permissions to
fields = billable, totalhours, hours, estimatedhours, internal

# a bunch of:
# field.permission = PERMISSION:consequence
# where consequence is one of: hide, remove, disable
#    hide - replaces with hidden input
#    remove - removes element
#    disable - removes input in favor of text
billable.permission = TIME_VIEW:hide, TIME_RECORD:disable
totalhours.permission = TIME_VIEW:remove, TIME_RECORD:disable
hours.permission = TIME_RECORD:remove
estimatedhours.permission = TIME_RECORD:disable
internal.permission = TIME_RECORD:hide

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.