--- loncom/interface/domainprefs.pm 2008/12/17 22:12:53 1.79 +++ loncom/interface/domainprefs.pm 2008/12/18 16:58:26 1.80 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.79 2008/12/17 22:12:53 raeburn Exp $ +# $Id: domainprefs.pm,v 1.80 2008/12/18 16:58:26 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3612,10 +3612,18 @@ sub modify_quotas { } $resulttext .= ''; } + my %newenv; foreach my $item (@usertools) { if (ref($changes{$item}) eq 'HASH') { - my $hashid = $env{'user.name'}.':'.$env{'user.domain'}; - &Apache::lonnet::devalidate_cache_new('usertools.'.$item,$hashid); + my $newacc = + &Apache::lonnet::usertools_access($env{'user.name'}, + $env{'user.domain'}, + $item,'reload'); + if ($env{'environment.tools.'.$item} ne '') { + if ($env{'environment.availabletools.'.$item} ne $newacc) { + $newenv{'environment.availabletools.'.$item} = $newacc; + } + } $resulttext .= '