The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<%INIT>
unless( $session{'CurrentUser'}->HasRight( Right => 'SuperUser', Object => $RT::System ) ) {
	return $m->comp( 'Elements/Error/NoRights' );
}

use RTx::Shredder ();
my $path = RTx::Shredder->StoragePath;
unless( -d $path && -w _ ) {
	return $m->comp( 'Elements/Error/NoStorage', Path => $path );
}

$m->call_next(%ARGS);
</%INIT>