--- loncom/homework/daxesave.pm	2023/11/19 21:28:17	1.9
+++ loncom/homework/daxesave.pm	2023/11/26 20:47:15	1.10
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Convert and save a problem from Daxe.
 #
-# $Id: daxesave.pm,v 1.9 2023/11/19 21:28:17 raeburn Exp $
+# $Id: daxesave.pm,v 1.10 2023/11/26 20:47:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -38,13 +38,14 @@ use File::Copy;
 use Apache::lonacc;
 use Apache::loncommon;
 use Apache::xml_to_loncapa;
+use Apache::lonlocal;
 
 sub handler {
     my $request = shift;
     
     $request->content_type('text/plain');
 
-    my %editors = &Apache::loncommon::permitted_editors();
+    my %editors = &Apache::loncommon::permitted_editors($request->uri);
     unless ($editors{'daxe'}) {
         $request->content_type('text/plain');
         $request->print(&mt('Daxe editor not enabled for this Authoring Space'));