--- loncom/interface/lonmenu.pm 2011/10/31 13:44:30 1.356 +++ loncom/interface/lonmenu.pm 2011/10/31 22:46:09 1.358 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.356 2011/10/31 13:44:30 raeburn Exp $ +# $Id: lonmenu.pm,v 1.358 2011/10/31 22:46:09 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -491,8 +491,9 @@ sub innerregister { $uploaded = &is_course_upload($file,$cnum,$cdom); } if (!$uploaded) { - - $file=~s{^($match_domain)/($match_username)}{/priv/$1/$2}; + + $file=~s{^(priv/$match_domain/$match_username)}{/$1}; + $file=~s{^($match_domain/$match_username)}{/priv/$1}; # Check that the user has permission to edit this resource my $setpriv = 1;