Modify

Opened 15 years ago

Closed 12 years ago

Last modified 10 years ago

#6538 closed defect (invalid)

Billable and Internal check boxes & permissions appear not to work

Reported by: anonymous Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords: waiting-for-feedback
Cc: picht@… Trac Release: 0.11

Description

I have Trac 0.11.1 installed with Genshi 0.5.1 added the TimingAndEstimation plugin 0.9.0b on Debian.

When I set permissions to (reported in Trac on http://server/<project>/about) billable.permission TIME_VIEW:disable, TIME_RECORD:disable, estimatedhours.permission TIME_RECORD:disable fields totalhours, hours, estimatedhours hours.permission TIME_VIEW:remove, TIME_RECORD:disable internal.permission TIME_RECORD:hide

The billable field still appears as well as the internal field. How to get these away?

Attachments (0)

Change History (7)

comment:1 Changed 15 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

I re-added this so It would be syntax highlighted

#When I set permissions to (reported in Trac on http://server/<project>/about)

fields = totalhours, hours, estimatedhours 
billable.permission = TIME_VIEW:disable, TIME_RECORD:disable
estimatedhours.permission = TIME_RECORD:disable
hours.permission = TIME_VIEW:remove, TIME_RECORD:disable
internal.permission = TIME_RECORD:hide

http://trac-hacks.org/wiki/TimeEstimationUserManual#Configuration

In order for permissions to be applied to the billable and internal fields, you must include them in the "fields" configuration (see the example below). Also if you want them to always be (hidden / disabled etc) you can use the ALWAYS permission signifier (previously undocumented , but now documented at the above link)

# Now we apply permissions to billable and internal
fields = billable, internal, totalhours, hours, estimatedhours 

# If the user doesnt have TIME_VIEW or TIME_RECORD, then the field will be disabled
billable.permission = TIME_VIEW:disable, TIME_RECORD:disable

# OR to remove billable completely 
billable.permission = ALWAYS:hide
 ...

HTH, feel free to reopen if you have further questions,

Russ Tyndall

comment:3 Changed 12 years ago by picht@…

Resolution: fixed
Status: closedreopened

It isn't working for me either. What am I doing wrong?

[trac]
permission_policies = InternalTicketsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy

[timingandestimation]
#change what permission is required to view the billing/management screen
# default is REPORT_VIEW
billing_permission = TRAC_ADMIN

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

# a bunch of:
# field.permission = PERMISSION:consequence
#
#  If PERMISSION=ALWAYS, then the consequence always occurs
#    eg: billable.permission = ALWAYS:hide
#        will always result in billable being hidden, irrespective of user permissions
#
# 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 = ALWAYS:hide
internal.permission = ALWAYS:hide

comment:4 Changed 12 years ago by Russ Tyndall

Cc: picht@… added; anonymous removed

Can you please describe how it "isnt working"? I will need a little more info than that to debug the issue.

Are the fields showing even though you have configured them to always be hidden? Could you perhaps enable TracLogging and post a log of a single page render where things are failing to be hidden?

Thanks Russ

comment:5 Changed 12 years ago by Russ Tyndall

Keywords: waiting-for-feedback added

comment:6 Changed 12 years ago by anonymous

Exactly what you suspected. The fields are simply sitting there unimpressed by the configuration options. I can try to record a log when I'm back at work tomorrow morning.

comment:7 Changed 12 years ago by Russ Tyndall

  • Can you verify that you have the plugin enabled?
  • Also are you using the correct plugin for the correct version of trac?
    • What version of trac and the plugin are you using?

Thanks for the further answers

comment:8 Changed 12 years ago by Russ Tyndall

Resolution: invalid
Status: reopenedclosed

Its been > three months with no response and it works for me, so closing as invalid

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.