On Thursday, July 5, 2012 3:29:03 PM UTC-7, Daniel França wrote:
>
> Hi, 
> I wanto to know if it's possible to hide ticket change history for some 
> groups or permissions...
> I'd google it and I've find that: http://trac.edgewall.org/ticket/6840
> but it seems to work only to hide sensitive ticket, not to hide only the 
> change history for specific groups.
>
> Anyone know some good solution for this case?
>

If you were trying to hide a realm or specific resource (ticket, 
milestones, pastebin, etc ..), then FineGrainPermissions would help you. In 
this case, the only possible way I know of is to write a plugin that adds a 
TICKET_VIEW_COMMENT permission and implements ITemplateStreamFilter to 
strip out the HTML for the comment history for users that don't have that 
permission. Similarly, SimpleTicketPlugin does this for fields on the 
newticket form (and BlackMagicTicketTweaksPlugin has much of the same 
functionality).

I'd be interested to know if someone has a better way to go about this, but 
the way I proposed I think is just a 20-30 LOC plugin.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-users/-/5O99oN2KNHwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to