Hi Ryan, With the above modifications, Now every user is able to view all tickets. It is revoking the actions of TICKET_VIEW_REPORTED permission
Regards, SF On Tuesday, May 9, 2017 at 7:25:46 PM UTC+2, RjOllos wrote: > > > > On Tuesday, May 9, 2017 at 9:54:40 AM UTC-7, RjOllos wrote: >> >> >> >> On Tuesday, May 9, 2017 at 8:12:29 AM UTC-7, toto200891 wrote: >>> >>> Hi, >>> >>> how could i give user a permission to view tickets assigned to him? Is >>> it possible? >>> >>> Regards, >>> >>> SF >>> >> >> You can modify SupportDeskPolicy like so: >> >> - return ticket['reporter'] == username >> + return username in (ticket['reporter'], ticket['owner']) >> >> That change will allow a user with TICKET_VIEW_REPORTER to only view >> ticket's for which they are the reporter or owner. >> > > Sorry for my poor grammar! I should proof-read. > > More discussion about SupportDeskPolicy here: > https://groups.google.com/forum/#!topic/trac-users/JGYZ81xuWjk > > - 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.
