On Sun, Jan 17, 2010 at 08:17:25PM -0700, Matt Adams wrote:
> Folks:
> 
> Does anyone know if it is possible to customize email template content 
> based on the rights of the person being sent the email.  For example, if 
> the requestor is also a privileged user I'd like to be able to do 
> something like this in the template:
> 
> if (user_is_privileged) {
>     include_special_content;
> }
> 
> Rather than setting up a new template entirely.  Is this possible or am 
> I barking up the wrong tree?

You want to get the requestor user objects and then check
if ($user->Privileged) { }

-kevin

Attachment: pgpKpfXSBSHWn.pgp
Description: PGP signature

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [email protected]

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22 & 23
Dublin, Ireland - Mar 15 & 16
Boston, MA, USA - April 5 & 6
Washington DC, USA - Oct 25 & 26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to