[Rt-commit] r8822 - rt/branches/3.7-EXPERIMENTAL/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Wed Aug 29 08:30:37 EDT 2007
Author: ruz
Date: Wed Aug 29 08:30:37 2007
New Revision: 8822
Modified:
rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
Log:
* if current user has no right we return blank unlimited collection,
but that's really wrong as later we can apply new conditions using Limit
method and get some result that is not relevant to our request.
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm Wed Aug 29 08:30:37 2007
@@ -441,6 +441,7 @@
$self->{'attachments'} = RT::Attachments->new( $self->CurrentUser );
unless ( $self->CurrentUserCanSee ) {
+ $self->{'attachments'}->Limit(FIELD => 'id', VALUE => '0');
return $self->{'attachments'};
}
More information about the Rt-commit
mailing list