--- loncom/auth/londatecheck.pm 2012/04/11 11:40:07 1.13 +++ loncom/auth/londatecheck.pm 2017/12/22 02:00:53 1.14 @@ -1,5 +1,5 @@ # Checks contentopen/close settings disable subsequent PerlHandlers if not open -# $Id: londatecheck.pm,v 1.13 2012/04/11 11:40:07 goltermann Exp $ +# $Id: londatecheck.pm,v 1.14 2017/12/22 02:00:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -55,6 +55,10 @@ sub handler { if (&Apache::lonnet::allowed('bre',$r->uri) eq 'F') { return DECLINED; } + if (($r->uri =~ /ext\.tool$/) && + (&Apache::lonnet::EXT('resource.0.gradable',$env{'request.symb'}) =~ /^yes$/i)) { + return DECLINED; + } my ($status,$open,$close,$msg)=&content_date_check(); if ($status ne 'OPEN') { $r->set_handlers('PerlHandler'=>undef);