[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Thu May 24 19:30:16 EDT 2012
raeburn Thu May 24 23:30:16 2012 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- No 'People' item in Secondary menu in course context for unprivileged
roles unless student_classlist_view enabled in course config.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.375 loncom/interface/lonmenu.pm:1.376
--- loncom/interface/lonmenu.pm:1.375 Thu May 24 22:56:30 2012
+++ loncom/interface/lonmenu.pm Thu May 24 23:30:16 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.375 2012/05/24 22:56:30 raeburn Exp $
+# $Id: lonmenu.pm,v 1.376 2012/05/24 23:30:16 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -319,6 +319,7 @@
? "/$env{'request.course.sec'}"
: '');
my $canedit = &Apache::lonnet::allowed('mdc', $env{'request.course.id'});
+ my $canviewroster = $env{'course.'.$env{'request.course.id'}.'.student_classlist_view'};
my $canviewgrps = &Apache::lonnet::allowed('vcg', $crs_sec);
my $canmodifyuser = &Apache::lonnet::allowed('cst', $crs_sec);
my $canviewwnew = &Apache::lonnet::allowed('whn', $crs_sec);
@@ -347,7 +348,7 @@
next if $$menuitem[4] eq 'cst'
&& !$canmodifyuser;
next if $$menuitem[4] eq 'ncst'
- && $canmodifyuser;
+ && ($canmodifyuser || !$canviewroster);
next if $$menuitem[4] eq 'mgr'
&& !$canmgr;
next if $$menuitem[4] eq 'nmgr'
More information about the LON-CAPA-cvs
mailing list