Skip to content

Commit

Permalink
Add URI method so add link to user works
Browse files Browse the repository at this point in the history
The module was missing a URI method to ensure the URI prefix was correct
for user objects.
  • Loading branch information
bkembreeBPS committed Nov 19, 2023
1 parent d08078d commit e22614a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/RT/User.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e22614a

Please sign in to comment.