[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Tue Apr 11 17:54:09 EDT 2023
raeburn Tue Apr 11 21:54:09 2023 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- Bug 6979
Don't show student/employee ID for advanced users.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.530 loncom/interface/lonmenu.pm:1.531
--- loncom/interface/lonmenu.pm:1.530 Sun Apr 2 03:16:26 2023
+++ loncom/interface/lonmenu.pm Tue Apr 11 21:54:09 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.530 2023/04/02 03:16:26 raeburn Exp $
+# $Id: lonmenu.pm,v 1.531 2023/04/11 21:54:09 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1077,7 +1077,9 @@
);
if ($env{'request.user_in_effect'} =~ /^($match_username):($match_domain)$/) {
($vuname,$vudom) = ($1,$2);
- $vid = (&Apache::lonnet::idrget($vudom,$vuname))[1];
+ unless (&Apache::lonnet::is_advanced_user($vudom,$vuname)) {
+ $vid = (&Apache::lonnet::idrget($vudom,$vuname))[1];
+ }
$viewas = $env{'request.user_in_effect'};
$text = $lt{'upda'};
$change = 'off';
More information about the LON-CAPA-cvs
mailing list