Modify

Opened 5 years ago

Closed 5 years ago

#6272 closed defect (worksforme)

permission swap

Reported by: kadel Owned by: bobbysmith007
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 5 years ago by bobbysmith007

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

comment:2 Changed 5 years ago by bobbysmith007

  • Resolution set to worksforme
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bobbysmith007. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.