[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Tue Aug 6 12:02:31 EDT 2013
raeburn Tue Aug 6 16:02:31 2013 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- No "People" item in inline menu for students if student-viewable classlist
is disabled.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.417 loncom/interface/lonmenu.pm:1.418
--- loncom/interface/lonmenu.pm:1.417 Wed Jul 3 16:44:20 2013
+++ loncom/interface/lonmenu.pm Tue Aug 6 16:02:31 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.417 2013/07/03 16:44:20 raeburn Exp $
+# $Id: lonmenu.pm,v 1.418 2013/08/06 16:02:31 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -321,6 +321,9 @@
: '');
my $canedit = &Apache::lonnet::allowed('mdc', $env{'request.course.id'});
my $canviewroster = $env{'course.'.$env{'request.course.id'}.'.student_classlist_view'};
+ if ($canviewroster eq 'disabled') {
+ undef($canviewroster);
+ }
my $canviewgrps = &Apache::lonnet::allowed('vcg', $crs_sec);
my $canmodifyuser = &Apache::lonnet::allowed('cst', $crs_sec);
my $canviewwnew = &Apache::lonnet::allowed('whn', $crs_sec);
More information about the LON-CAPA-cvs
mailing list