Modify

Opened 5 years ago

Closed 22 months ago

Last modified 4 weeks ago

#6538 closed defect (invalid)

Billable and Internal check boxes & permissions appear not to work

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

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

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 2 years ago by picht@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

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 2 years ago by bobbysmith007

  • 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 2 years ago by bobbysmith007

  • Keywords waiting-for-feedback added

comment:6 Changed 2 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 2 years ago by bobbysmith007

  • 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 22 months ago by bobbysmith007

  • Resolution set to invalid
  • Status changed from reopened to closed

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

Add Comment

Modify Ticket

Action
as closed The owner will remain bobbysmith007.
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.