[Rt-commit] [svn] r1098 - rt/branches/rt-3.1/lib/RT/Interface
leira at pallas.eruditorum.org
leira at pallas.eruditorum.org
Thu Jun 17 13:00:38 EDT 2004
Author: leira
Date: Thu Jun 17 13:00:37 2004
New Revision: 1098
Modified:
rt/branches/rt-3.1/lib/RT/Interface/Email.pm
Log:
RT-Ticket: 3035
RT-Status: resolved
RT-Action: comment
RT::Interface::Email now knows whether it's trying to create a user on ticket creation or reply, and gives an appropriate error message about which right is lacking.
Modified: rt/branches/rt-3.1/lib/RT/Interface/Email.pm
==============================================================================
--- rt/branches/rt-3.1/lib/RT/Interface/Email.pm (original)
+++ rt/branches/rt-3.1/lib/RT/Interface/Email.pm Thu Jun 17 13:00:37 2004
@@ -450,9 +450,12 @@
$args{'ticket'} ||= $parser->ParseTicketId($Subject);
my $SystemTicket;
+ my $Right = 'CreateTicket';
if ( $args{'ticket'} ) {
$SystemTicket = RT::Ticket->new($RT::SystemUser);
$SystemTicket->Load( $args{'ticket'} );
+ # if there's an existing ticket, this must be a reply
+ $Right = 'ReplyToTicket';
}
#Set up a queue object
@@ -528,7 +531,7 @@
RT could not load a valid user, and RT's configuration does not allow
for the creation of a new user for this email ($ErrorsTo).
-You might need to grant 'Everyone' the right 'CreateTicket' for the
+You might need to grant 'Everyone' the right '$Right' for the
queue @{[$args{'queue'}]}.
EOT
More information about the Rt-commit
mailing list