--- loncom/interface/loncreateuser.pm 2009/10/30 04:44:56 1.319 +++ loncom/interface/loncreateuser.pm 2009/10/30 18:32:25 1.320 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.319 2009/10/30 04:44:56 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.320 2009/10/30 18:32:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4307,17 +4307,20 @@ sub print_main_menu { } if (!exists($permission->{'cusr_section'})){ - - push(@{ $menu[2]->{items} }, - { - linktext => 'Automated Enrollment', - icon => 'roles.png', - #help => 'Course_Automated_Enrollment', - permission => (&Apache::lonnet::auto_run($cnum,$cdom) - && $permission->{'cusr'}), - url => '/adm/populate', - linktitle => 'Automated enrollment manager.', - }, + if ($crstype ne 'Community') { + push(@{ $menu[2]->{items} }, + { + linktext => 'Automated Enrollment', + icon => 'roles.png', + #help => 'Course_Automated_Enrollment', + permission => (&Apache::lonnet::auto_run($cnum,$cdom) + && $permission->{'cusr'}), + url => '/adm/populate', + linktitle => 'Automated enrollment manager.', + } + ); + } + push(@{ $menu[2]->{items} }, { linktext => 'User Self-Enrollment', icon => 'cstr.png', @@ -4327,7 +4330,6 @@ sub print_main_menu { linktitle => 'Configure user self-enrollment.', }, ); - } }; return Apache::lonhtmlcommon::generate_menu(@menu); 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.