--- rat/lonpage.pm 2015/03/11 19:55:44 1.108 +++ rat/lonpage.pm 2015/07/09 00:11:56 1.109 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.108 2015/03/11 19:55:44 raeburn Exp $ +# $Id: lonpage.pm,v 1.109 2015/07/09 00:11:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -643,6 +643,11 @@ sub get_buttons { my $symb=&Apache::lonnet::encode_symb($hash->{'map_id_'.$mapid}, $resid, $hash->{'src_'.$rid}); + unless ($env{'request.role.adv'}) { + if (&Apache::lonnet::EXT('resource.0.buttonshide',$symb)) { + return; + } + } if ($hash->{'encrypted_'.$rid}) { $symb=&Apache::lonenc::encrypted($symb); $esrc=&Apache::lonenc::encrypted($esrc);