--- loncom/interface/loncreateuser.pm 2016/11/11 02:09:55 1.419 +++ loncom/interface/loncreateuser.pm 2016/11/11 14:39:23 1.420 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.419 2016/11/11 02:09:55 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.420 2016/11/11 14:39:23 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2000,7 +2000,8 @@ sub display_existing_roles { $rolepriv{$envkey}='edit'; } else { if ($context eq 'domain') { - if (&Apache::lonnet::allowed('vur',$ccdomain)) { + if ((&Apache::lonnet::allowed('vur',$ccdomain)) && + ($area=~m{^/$ccdomain/})) { $rolepriv{$envkey}='view'; } } elsif ($context eq 'course') {