Commit f9744abf authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Remove a needless debug line

It causes warnings when an accessor is called on an unloaded Scrip
parent 254e6155
......@@ -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(@_);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment