[rt-users] Customizing template content for privileged users
Kevin Falcone
falcone at bestpractical.com
Fri Jan 22 12:18:20 EST 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100122/175817b3/attachment.sig>
More information about the rt-users
mailing list