Getting current user's details in a Scrip

Hi,

I’m trying to tie a specific custom field down to being modified only by a specific user, but can’t figure out how to find out what user is actually logged in doing the action.

Whenever I use $self->CurrentUser, it shows ‘RT_System’ instead of the user I’m logged in as, and the person isn’t going to be the owner of the ticket.

Anybody have any ideas?

Stuart J. Browne

$Transaction->CreatorObjOn Tue, Dec 2, 2008 at 6:10 AM, Stuart Browne stuart.browne@ausregistry.com.au wrote:

Hi,

I’m trying to tie a specific custom field down to being modified only by a specific user, but can’t figure out how to find out what user is actually logged in doing the action.

Whenever I use $self->CurrentUser, it shows ‘RT_System’ instead of the user I’m logged in as, and the person isn’t going to be the owner of the ticket.

Anybody have any ideas?

Stuart J. Browne


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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

Best regards, Ruslan.