[Rt-commit] r10608 - in rt/branches/3.999-DANGEROUS: lib/RT/Interface/Email/Auth lib/RT/Model
jesse at bestpractical.com
jesse at bestpractical.com
Wed Jan 30 19:16:14 EST 2008
Author: jesse
Date: Wed Jan 30 19:16:14 2008
New Revision: 10608
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/lib/RT/Interface/Email/Auth/GnuPG.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
Log:
r75987 at pinglin: jesse | 2008-01-30 19:15:14 -0500
CheckBadData -> check_bad_data
r75988 at pinglin: jesse | 2008-01-30 19:15:25 -0500
Principal -> principal
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Interface/Email/Auth/GnuPG.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Interface/Email/Auth/GnuPG.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Interface/Email/Auth/GnuPG.pm Wed Jan 30 19:16:14 2008
@@ -161,7 +161,7 @@
}
unless ( $sent_once{'BadData'} ) {
unless (
- CheckBadData(
+ check_bad_data(
Message => $args{'Message'},
Status => \@status
)
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm Wed Jan 30 19:16:14 2008
@@ -1208,7 +1208,7 @@
=head2 has_right
-Takes a param hash with the fields 'right' and 'Principal'.
+Takes a param hash with the fields 'right' and 'principal'.
Principal defaults to the current user.
Returns true if the principal has that right for this queue.
Returns undef otherwise.
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm Wed Jan 30 19:16:14 2008
@@ -3547,9 +3547,9 @@
=head2 has_right
- Takes a paramhash with the attributes 'right' and 'Principal'
+ Takes a paramhash with the attributes 'right' and 'principal'
'right' is a ticket-scoped textual right from RT::Model::ACE
- 'Principal' is an RT::Model::User object
+ 'principal' is an RT::Model::User object
Returns 1 if the principal has the right. Returns undef if not.
@@ -3563,8 +3563,8 @@
@_
);
- unless (( defined $args{'Principal'} )
- and ( ref( $args{'Principal'} ) ) )
+ unless (( defined $args{'principal'} )
+ and ( ref( $args{'principal'} ) ) )
{
Carp::cluck("Principal attrib undefined for Ticket::has_right");
Jifty->log->fatal("Principal attrib undefined for Ticket::has_right");
@@ -3572,7 +3572,7 @@
}
return (
- $args{'Principal'}->has_right(
+ $args{'principal'}->has_right(
object => $self,
right => $args{'right'}
)
More information about the Rt-commit
mailing list