--- loncom/interface/lonuserutils.pm 2025/01/12 23:34:20 1.223 +++ loncom/interface/lonuserutils.pm 2025/01/13 00:57:39 1.224 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Utility functions for managing LON-CAPA user accounts # -# $Id: lonuserutils.pm,v 1.223 2025/01/12 23:34:20 raeburn Exp $ +# $Id: lonuserutils.pm,v 1.224 2025/01/13 00:57:39 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6699,6 +6699,10 @@ sub can_modify_userinfo { $canmodify{$field} = 0; if (&Apache::lonnet::allowed('mau',$dom)) { $canmodify{$field} = 1; + } elsif (($context ne 'selfcreate') && + ($env{'request.role.dom'} ne $dom) && + ($env{'user.domain'} ne $dom)) { + $canmodify{$field} = 0; } else { if (ref($domconfig{'usermodification'}) eq 'HASH') { if (ref($domconfig{'usermodification'}{$context}) eq 'HASH') {