[LON-CAPA-cvs] cvs: rat / lonpage.pm

raeburn raeburn at source.lon-capa.org
Wed Jul 8 20:11:57 EDT 2015


raeburn		Thu Jul  9 00:11:57 2015 EDT

  Modified files:              
    /rat	lonpage.pm 
  Log:
  - Hide icons for each resource in a .page from students, if buttonshide
    parameter is set.
  
  
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.108 rat/lonpage.pm:1.109
--- rat/lonpage.pm:1.108	Wed Mar 11 19:55:44 2015
+++ rat/lonpage.pm	Thu Jul  9 00:11:56 2015
@@ -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 @@
     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);




More information about the LON-CAPA-cvs mailing list