--- loncom/interface/loncommon.pm	2023/11/19 21:28:17	1.1421
+++ loncom/interface/loncommon.pm	2023/11/27 23:24:05	1.1423
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1421 2023/11/19 21:28:17 raeburn Exp $
+# $Id: loncommon.pm,v 1.1423 2023/11/27 23:24:05 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2501,7 +2501,7 @@ sub iframe_wrapper_resizejs {
             if (\$('div.LC_menus_content:first').length) {
                 if (\$('div.LC_menus_content:first').hasClass ("shown")) {
                     header = \$('div.LC_menus_content:first');
-                    offset = 9;
+                    offset = 12;
                 }
             } else if (\$('div.LC_head_subbox:first').length) {
                 header = \$('div.LC_head_subbox:first');
@@ -6590,7 +6590,7 @@ sub nocodemirror {
 
 =item * &permitted_editors()
 
-Input: None
+Input: $uri (optional)
 
 Returns: %editors hash in which keys are editors
          permitted in current Authoring Space.
@@ -6605,6 +6605,7 @@ Returns: %editors hash in which keys are
 =cut
 
 sub permitted_editors {
+    my ($uri) = @_;
     my ($is_author,$is_coauthor,$auname,$audom,%editors);
     if ($env{'request.role'} =~ m{^au\./}) {
         $is_author = 1;
@@ -6623,6 +6624,9 @@ sub permitted_editors {
             ($audom,$auname) = ($1,$2);
         } elsif ($env{'request.uri'} =~ m{^/priv/($match_domain)/($match_username)/}) {
             ($audom,$auname) = ($1,$2);
+        } elsif (($uri eq '/daxesave') &&
+                 ($env{'form.path'} =~ m{^/daxeopen/priv/($match_domain)/($match_username)/})) {
+            ($audom,$auname) = ($1,$2);
         }
         if (($audom ne '') && ($auname ne '')) {
             if (($env{'user.domain'} eq $audom) &&
@@ -6883,7 +6887,7 @@ sub bodytag {
         $bodytag .= Apache::lonhtmlcommon::scripttag(
             Apache::lonmenu::utilityfunctions($httphost), 'start');
 
-        if ($args->{'collapsible_header'}) {
+        if ($args->{'collapsible_header'} ne '') {
             my $alttext = &mt('menu state: collapsed');
             my $tooltip = &mt('display standard menus');
             $bodytag .= <<"END";
@@ -6956,8 +6960,9 @@ END
             $bodytag .= '<hr style="clear:both" />';
             $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); 
         }
-        if ($args->{'collapsible_header'}) {
-            $bodytag .= '<div id="LC_collapsible_separator"></div>'.
+        if ($args->{'collapsible_header'} ne '') {
+            $bodytag .= $args->{'collapsible_header'}.
+                        '<div id="LC_collapsible_separator"></div>'.
                         '</div></div>';
         }
         return $bodytag;