Diff for /loncom/interface/loncreateuser.pm between versions 1.433 and 1.434

version 1.433, 2017/01/28 21:35:49 version 1.434, 2017/01/28 23:26:46
Line 7207  sub print_helpdeskaccess_display { Line 7207  sub print_helpdeskaccess_display {
     my $confname = $cdom.'-domainconfig';      my $confname = $cdom.'-domainconfig';
     my $crstype = &Apache::loncommon::course_type();      my $crstype = &Apache::loncommon::course_type();
   
     my @accesstypes = ('all','anydh','anyda','none');      my @accesstypes = ('all','dh','da','none');
     my ($numstatustypes,@jsarray);      my ($numstatustypes,@jsarray);
     my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($cdom);      my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($cdom);
     if (ref($types) eq 'ARRAY') {      if (ref($types) eq 'ARRAY') {
Line 7417  ENDJS Line 7417  ENDJS
                     'whi'    => 'Which helpdesk personnel may use this role?',                      'whi'    => 'Which helpdesk personnel may use this role?',
                     'udd'    => 'Use domain default',                      'udd'    => 'Use domain default',
                     'all'    => 'All with domain helpdesk or helpdesk assistant role',                      'all'    => 'All with domain helpdesk or helpdesk assistant role',
                     'anydh'  => 'All with domain helpdesk role',                      'dh'     => 'All with domain helpdesk role',
                     'anyda'  => 'All with domain helpdesk assistant role',                      'da'     => 'All with domain helpdesk assistant role',
                     'none'   => 'None',                      'none'   => 'None',
                     'status' => 'Determined based on institutional status',                      'status' => 'Determined based on institutional status',
                     'inc'    => 'Include all, but exclude specific personnel',                      'inc'    => 'Include all, but exclude specific personnel',
Line 7661  sub domain_adhoc_access { Line 7661  sub domain_adhoc_access {
                 }                  }
             } elsif ($access eq 'none') {              } elsif ($access eq 'none') {
                 $domusage{$role} = &mt('No one in the domain');                  $domusage{$role} = &mt('No one in the domain');
             } elsif ($access eq 'anydh') {              } elsif ($access eq 'dh') {
                 $domusage{$role} = &mt('Any user in domain with active [_1] role',&Apache::lonnet::plaintext('dh'));                  $domusage{$role} = &mt('Any user in domain with active [_1] role',&Apache::lonnet::plaintext('dh'));
             } elsif ($access eq 'anyda') {              } elsif ($access eq 'da') {
                 $domusage{$role} = &mt('Any user in domain with active [_1] role',&Apache::lonnet::plaintext('da'));                  $domusage{$role} = &mt('Any user in domain with active [_1] role',&Apache::lonnet::plaintext('da'));
             } elsif ($access eq 'all') {              } elsif ($access eq 'all') {
                 $domusage{$role} = &mt('Any user in domain with active [_1] or [_2] role',                  $domusage{$role} = &mt('Any user in domain with active [_1] or [_2] role',
Line 7852  sub update_helpdeskaccess { Line 7852  sub update_helpdeskaccess {
         $r->print('<p class="LC_error">'.&mt('You do not have permission to change helpdesk access.').'</p>');          $r->print('<p class="LC_error">'.&mt('You do not have permission to change helpdesk access.').'</p>');
         return;          return;
     }      }
     my @accesstypes = ('all','anydh','anyda','none','status','inc','exc');      my @accesstypes = ('all','dh','da','none','status','inc','exc');
     my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};      my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
     my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};      my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};
     my $confname = $cdom.'-domainconfig';      my $confname = $cdom.'-domainconfig';
Line 8103  sub update_helpdeskaccess { Line 8103  sub update_helpdeskaccess {
                         if ($env{'form.'.$role.'_incrs'}) {                          if ($env{'form.'.$role.'_incrs'}) {
                             if ($newsettings{$role}{'access'} eq 'all') {                              if ($newsettings{$role}{'access'} eq 'all') {
                                 $r->print(&mt('All helpdesk staff can access '.lc($crstype).' with this role.'));                                  $r->print(&mt('All helpdesk staff can access '.lc($crstype).' with this role.'));
                             } elsif ($newsettings{$role}{'access'} eq 'anydh') {                              } elsif ($newsettings{$role}{'access'} eq 'dh') {
                                 $r->print(&mt('Helpdesk staff can use this role if they have an active [_1] role',                                  $r->print(&mt('Helpdesk staff can use this role if they have an active [_1] role',
                                               &Apache::lonnet::plaintext('dh')));                                                &Apache::lonnet::plaintext('dh')));
                             } elsif ($newsettings{$role}{'access'} eq 'anyda') {                              } elsif ($newsettings{$role}{'access'} eq 'da') {
                                 $r->print(&mt('Helpdesk staff can use this role if they have an active [_1] role',                                  $r->print(&mt('Helpdesk staff can use this role if they have an active [_1] role',
                                               &Apache::lonnet::plaintext('da')));                                                &Apache::lonnet::plaintext('da')));
                             } elsif ($newsettings{$role}{'access'} eq 'none') {                              } elsif ($newsettings{$role}{'access'} eq 'none') {

Removed from v.1.433  
changed lines
  Added in v.1.434


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>