RT::CurrentUser(3)

NAME
  RT::CurrentUser - an RT object representing the current user

SYNOPSIS
  use RT::CurrentUser

DESCRIPTION

METHODS

  UserObj
  Returns the RT::User object associated with this CurrentUser object.

  LoadByEmail
Loads a User into this CurrentUser object. Takes the email address of the user to load.

  LoadByGecos
Loads a User into this CurrentUser object. Takes a unix username as its only argument.

  LoadByName
Loads a User into this CurrentUser object. Takes a Name.

  Load
Loads a User into this CurrentUser object. Takes either an integer (users id column reference) or a Name The latter is deprecated. Instead, you should use LoadByName. Formerly, this routine also took email addresses.

  IsPassword
Takes a password as a string. Passes it off to IsPassword in this user's UserObj. If it is the user's password and the user isn't disabled, returns 1.

Otherwise, returns undef.

  Privileged
Returns true if the current user can be granted rights and be a member of groups.

  HasQueueRight
calls $self->UserObj->HasQueueRight with the arguments passed in

  HasSystemRight
calls $self->UserObj->HasSystemRight with the arguments passed in

  HasSystemRight
calls $self->UserObj->HasRight with the arguments passed in