--- loncom/interface/loncreateuser.pm 2005/06/17 21:04:40 1.104 +++ loncom/interface/loncreateuser.pm 2005/06/19 00:41:32 1.105 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.104 2005/06/17 21:04:40 albertel Exp $ +# $Id: loncreateuser.pm,v 1.105 2005/06/19 00:41:32 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -108,7 +108,8 @@ sub my_custom_roles { sub authorpriv { my ($auname,$audom)=@_; - unless (&Apache::lonnet::allowed('cca',$audom.'/'.$auname)) { return ''; } + unless ((&Apache::lonnet::allowed('cca',$audom.'/'.$auname)) + || (&Apache::lonnet::allowed('caa',$audom.'/'.$auname))) { return ''; } return 1; } @@ -571,7 +572,7 @@ END $class='Domain'; } } - if ($role_code eq 'ca') { + if (($role_code eq 'ca') || ($role_code eq 'aa')) { $area=~/\/(\w+)\/(\w+)/; if (&authorpriv($2,$1)) { $allowed=1; @@ -775,6 +776,7 @@ ENDOTHERAUTHS 'sta' => "Start", 'end' => "End", 'cau' => "Co-Author", + 'caa' => "Assistant Co-Author", 'ssd' => "Set Start Date", 'sed' => "Set End Date" ); @@ -793,6 +795,17 @@ ENDOTHERAUTHS $lt{'sed'} + + +$lt{'caa'} +$cudom\_$cuname + +$lt{'ssd'} + +$lt{'sed'} + ENDCOAUTH }