Opened 4 years ago

Closed 4 years ago

#6830 closed defect (fixed)

ticket_type permissions problems.

Reported by: dimitri.slavutsky@… Owned by: obs
Priority: normal Component: BlackMagicTicketTweaksPlugin
Severity: normal Keywords: ticket_type
Cc: Trac Release: 0.11


I'm having problem to configure ticket_type permissions. Actually this show absolutly no effect. I configured as follwed:
blackmagic.* = enabled

ticket_type.Working Package = TICKET_MODIFY
ticket_type.Open Issue = TICKET_VIEW

permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy,VirtualTicketPermissionsPolicy,BlackMagicTicketTweaks

So I hoped, that the users, with TICKET_VIEW permission should be able only to see Open Issue's and the users with TICKET_MODIFY - Working Pagackes. But this take no effect. Instead, I'm getting this message in the log:
2010-03-19 15:35:41,417 Trac[blackmagic] DEBUG: Ticket permissions TICKET_MODIFY type Working Package
2010-03-19 15:35:41,417 Trac[blackmagic] DEBUG: Perm TICKET_MODIFY no in permissions
2010-03-19 15:35:41,417 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_MODIFY on <Resource u'ticket:7'>

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by obs

  • Status changed from new to assigned

Try the following

1) Change the permissions_policies to

permission_policies = BlackMagicTicketTweaks,DefaultPermissionPolicy, LegacyAttachmentPolicy,VirtualTicketPermissionsPolicy

then restart trac

If that doesn't work, try creating a new ticket type that is without spaces i.e. testtype and use the following permissions

ticket_type.testtype = TICKET_MODIFY

Let me know how it goes.

comment:2 Changed 4 years ago by dimitri.slavutsky@…

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

I made those changes and it seems to working. I'll inform you if any problems will came up in the future. thanks.

but I don't know what helped. permission_policies, trac restart or additional ticket_type without space. 'cause it working know even with the types with space.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.