On Thursday, May 4, 2017 at 5:18:05 AM UTC-7, RjOllos wrote:
>
>
>
> On Thursday, May 4, 2017 at 5:06:53 AM UTC-7, toto200891 wrote:
>>
>> Yes I added, but user still cant view the ticket he created
>>
>
I installed the plugin in an environment and granted TICKET_CREATED and 
TICKET_VIEW_REPORTED to user3. With log level set to DEBUG, when trying to 
view a ticket for which user3 is not the reported, the following is seen in 
the output:

05:24:32 Trac[main] DEBUG: Dispatching <RequestWithSession "GET 
'/ticket/81'">
05:24:32 Trac[main] DEBUG: Chosen handler is <Component 
trac.ticket.web_ui.TicketModule>
05:24:32 Trac[session] DEBUG: Retrieving session for ID u'user3'
05:24:32 Trac[main] DEBUG: Negotiated locale: None -> en_US
05:24:32 Trac[perm] DEBUG: SupportDeskPolicy denies user3 performing 
TICKET_VIEW on <Resource u'ticket:81'> 


For a ticket reported by user3, there is no logging from SupportDeskPolicy 
and user3 can view the ticket:

05:26:19 Trac[main] DEBUG: Dispatching <RequestWithSession "GET 
'/ticket/91'">
05:26:19 Trac[main] DEBUG: Chosen handler is <Component 
trac.ticket.web_ui.TicketModule>
05:26:19 Trac[session] DEBUG: Retrieving session for ID u'user3'
05:26:19 Trac[main] DEBUG: Negotiated locale: None -> en_US
05:26:19 Trac[perm] DEBUG: No policy allowed user3 performing TICKET_ADMIN 
on <Resource u'ticket:91'>
05:26:19 Trac[perm] DEBUG: No policy allowed user3 performing 
TICKET_EDIT_CC on <Resource u'ticket:91'>


Those are just the first few lines of output that follow the request. The 
total output is many lines, but there's no significant information in the 
lines that I haven't shown.

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to