--- loncom/lonnet/perl/lonnet.pm 2004/12/20 20:47:23 1.581 +++ loncom/lonnet/perl/lonnet.pm 2004/12/20 20:51:24 1.582 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.581 2004/12/20 20:47:23 matthew Exp $ +# $Id: lonnet.pm,v 1.582 2004/12/20 20:51:24 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4790,8 +4790,11 @@ sub symbverify { if ( &symbclean(&declutter($bighash{'map_id_'.$mapid}).'___'.$resid.'___'.$thisfn) eq $symb) { - $okay=1; - } + if (($ENV{'request.role.adv'}) || + $bighash{'encrypted_'.$_} eq $ENV{'request.enc'}) { + $okay=1; + } + } } } untie(%bighash); @@ -6218,9 +6221,10 @@ returns the data handle =item * symbverify($symb,$thisfn) : verifies that $symb actually exists and is -a possible symb for the URL in $thisfn, returns a 1 on success, 0 on -failure, user must be in a course, as it assumes the existance of the -course initi hash, and uses $ENV('request.course.id'} +a possible symb for the URL in $thisfn, and if is an encryypted +resource that the user accessed using /enc/ returns a 1 on success, 0 +on failure, user must be in a course, as it assumes the existance of +the course initial hash, and uses $ENV('request.course.id'} =item *