--- loncom/interface/lonmenu.pm 2019/01/08 23:40:16 1.496 +++ loncom/interface/lonmenu.pm 2019/08/06 14:44:36 1.497 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.496 2019/01/08 23:40:16 raeburn Exp $ +# $Id: lonmenu.pm,v 1.497 2019/08/06 14:44:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -448,10 +448,8 @@ sub secondary_menu { $showresv = 1; } } - my %groups = &Apache::lonnet::get_active_groups( - $env{'user.domain'}, $env{'user.name'},$cdom,$cnum); - if (%groups) { - foreach my $group (keys(%groups)) { + if ($env{'request.course.groups'} ne '') { + foreach my $group (split(/:/,$env{'request.course.groups'}) { my @privs = split(/:/,$env{"user.priv.$env{'request.role'}./$cdom/$cnum/$group"}); shift(@privs); if (@privs) { 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.