diff --git a/lib/RT/User.pm b/lib/RT/User.pm index bbf0085a8f9..4a881003bca 100644 --- a/lib/RT/User.pm +++ b/lib/RT/User.pm @@ -829,6 +829,20 @@ sub EmailFrequency { return ''; } +=head2 URI + +Returns this user's URI + +=cut + +sub URI { + my $self = shift; + + require RT::URI::user; + my $uri = RT::URI::user->new($self->CurrentUser); + return $uri->URIForObject($self); +} + =head2 CanonicalizeEmailAddress ADDRESS CanonicalizeEmailAddress converts email addresses into canonical form.