[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
raeburn
raeburn@source.lon-capa.org
Mon, 30 Nov 2009 06:32:26 -0000
raeburn Mon Nov 30 06:32:26 2009 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
- Only include path in recently visted list in RES, if user currently
has bre or bro priv for the path.
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.250 loncom/interface/lonhtmlcommon.pm:1.251
--- loncom/interface/lonhtmlcommon.pm:1.250 Wed Nov 25 13:25:44 2009
+++ loncom/interface/lonhtmlcommon.pm Mon Nov 30 06:32:26 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.250 2009/11/25 13:25:44 droeschl Exp $
+# $Id: lonhtmlcommon.pm,v 1.251 2009/11/30 06:32:26 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -232,6 +232,9 @@
unless ($value =~/^error\:/) {
my $escaped = &Apache::loncommon::escape_url($value);
&Apache::loncommon::inhibit_menu_check(\$escaped);
+ if ($area eq 'residx') {
+ next if ((!&Apache::lonnet::allowed('bre',$value)) && (!&Apache::lonnet::allowed('bro',$value)));
+ }
$return.="\n<option value='$escaped'>".
&unescape((split(/\&/,$recent{$value}))[1]).
'</option>';