[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.4-97-gf9744ab

Alex Vandiver alexmv at bestpractical.com
Mon Jun 9 14:27:19 EDT 2014


The branch, 4.2-trunk has been updated
       via  f9744abf27b3a9c8eaaf6346d722d437c2b9b79e (commit)
      from  254e6155c61a252cd8b8a1e2482af39fc080757d (commit)

Summary of changes:
 lib/RT/Scrip.pm | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit f9744abf27b3a9c8eaaf6346d722d437c2b9b79e
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Jun 6 12:15:11 2014 -0400

    Remove a needless debug line
    
    It causes warnings when an accessor is called on an unloaded Scrip

diff --git a/lib/RT/Scrip.pm b/lib/RT/Scrip.pm
index 859c1fa..5e153cd 100644
--- a/lib/RT/Scrip.pm
+++ b/lib/RT/Scrip.pm
@@ -737,10 +737,7 @@ sub _Set {
 sub _Value {
     my $self = shift;
 
-    unless ( $self->CurrentUserHasRight('ShowScrips') ) {
-        $RT::Logger->debug( "CurrentUser can't see scrip #". $self->__Value('id') );
-        return (undef);
-    }
+    return unless $self->CurrentUserHasRight('ShowScrips');
 
     return $self->__Value(@_);
 }

-----------------------------------------------------------------------


More information about the rt-commit mailing list