--- loncom/homework/daxeopen.pm 2023/08/28 18:58:44 1.13 +++ loncom/homework/daxeopen.pm 2023/11/19 21:28:17 1.14 @@ -1,7 +1,7 @@ # The LearningOnline Network # Opening converted problems and directory listings for Daxe # -# $Id: daxeopen.pm,v 1.13 2023/08/28 18:58:44 raeburn Exp $ +# $Id: daxeopen.pm,v 1.14 2023/11/19 21:28:17 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -49,6 +49,13 @@ sub handler { my $uri = $request->uri; $uri =~ s{^/daxeopen}{}; &Apache::loncommon::no_cache($request); + my %editors = &Apache::loncommon::permitted_editors(); + unless ($editors{'daxe'}) { + $request->content_type('text/plain'); + $request->print(&mt('Daxe editor is not enabled for this Authoring Space.')); + $request->status(403); + return OK; + } if ($uri =~ m{/$}) { return directory_listing($uri, $request); } elsif ($uri =~ m{^/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$}) {