--- loncom/auth/lonroles.pm 2017/01/02 19:44:11 1.323 +++ loncom/auth/lonroles.pm 2017/01/21 19:58:05 1.324 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.323 2017/01/02 19:44:11 raeburn Exp $ +# $Id: lonroles.pm,v 1.324 2017/01/21 19:58:05 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -311,7 +311,7 @@ sub handler { my $cnum = $3; my $sec = $4; if ($custom_adhoc) { - my ($possroles,$description) = &Apache::lonnet::get_my_adhocroles($cdom.'_'.$cnum); + my ($possroles,$description) = &Apache::lonnet::get_my_adhocroles($cdom.'_'.$cnum,1); if (ref($possroles) eq 'ARRAY') { if (grep(/^\Q$rolename\E$/,@{$possroles})) { if (&Apache::lonnet::check_adhoc_privs($cdom,$cnum,$update,$refresh,$now, @@ -397,7 +397,7 @@ sub handler { # Is this an ad hoc custom role in a course/community? if (my ($domain,$rolename,$coursenum,$sec) = ($envkey =~ m{^form\.cr/($match_domain)/\1\-domainconfig/(\w+)\./\1/($match_courseid)(?:/(\w+)|$)})) { if ($dhroles{$domain}) { - my ($possroles,$description) = &Apache::lonnet::get_my_adhocroles($domain.'_'.$coursenum); + my ($possroles,$description) = &Apache::lonnet::get_my_adhocroles($domain.'_'.$coursenum,1); if (ref($possroles) eq 'ARRAY') { if (grep(/^\Q$rolename\E$/,@{$possroles})) { if (&Apache::lonnet::check_adhoc_privs($domain,$coursenum,$update,$refresh,$now,