Diff for /loncom/interface/domainprefs.pm between versions 1.290 and 1.291

version 1.290, 2017/01/28 03:48:44 version 1.291, 2017/01/28 21:35:49
Line 3250  sub print_helpsettings { Line 3250  sub print_helpsettings {
         my $context = 'domprefs';          my $context = 'domprefs';
         my $crstype = 'Course';          my $crstype = 'Course';
         my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($dom);          my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($dom);
         my @accesstypes = ('all','none');          my @accesstypes = ('all','anydh','anyda','none');
         my ($numstatustypes,@jsarray);          my ($numstatustypes,@jsarray);
         if (ref($types) eq 'ARRAY') {          if (ref($types) eq 'ARRAY') {
             if (@{$types} > 0) {              if (@{$types} > 0) {
Line 3468  function helpdeskAccess(num) { Line 3468  function helpdeskAccess(num) {
                 shown = Array('notinc');                  shown = Array('notinc');
                 hidden = Array('notexc','bystatus');                  hidden = Array('notexc','bystatus');
             }              }
             if (curraccess == 'all') {              if ((curraccess == 'all') || (curraccess == 'anydh') || (curraccess == 'anyda'))  {
                 hidden = Array('notinc','notexc','bystatus');                  hidden = Array('notinc','notexc','bystatus');
             }              }
         }          }
Line 3525  sub helpdeskroles_access { Line 3525  sub helpdeskroles_access {
     my %lt = &Apache::lonlocal::texthash(      my %lt = &Apache::lonlocal::texthash(
                     'rou'    => 'Role usage',                      'rou'    => 'Role usage',
                     'whi'    => 'Which helpdesk personnel may use this role?',                      'whi'    => 'Which helpdesk personnel may use this role?',
                     'all'    => 'All',                      'all'    => "All with domain helpdesk or helpdesk assistant role',
                       'anydh'  => "All with domain helpdesk role',
                       'anyda'  => "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 12457  sub modify_helpsettings { Line 12459  sub modify_helpsettings {
     my %existing=&Apache::lonnet::dump('roles',$dom,$confname,'rolesdef_');      my %existing=&Apache::lonnet::dump('roles',$dom,$confname,'rolesdef_');
     my (@allpos,%newsettings,%changedprivs,$newrole);      my (@allpos,%newsettings,%changedprivs,$newrole);
     my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($dom);      my ($othertitle,$usertypes,$types) = &Apache::loncommon::sorted_inst_types($dom);
     my @accesstypes = ('all','none','status','inc','exc');      my @accesstypes = ('all','anydh','anyda','none','status','inc','exc');
     my %domhelpdesk = &Apache::lonnet::get_active_domroles($dom,['dh','da']);      my %domhelpdesk = &Apache::lonnet::get_active_domroles($dom,['dh','da']);
     my %lt = &Apache::lonlocal::texthash(      my %lt = &Apache::lonlocal::texthash(
                     s      => 'system',                      s      => 'system',
                     d      => 'domain',                      d      => 'domain',
                     order  => 'Display order',                      order  => 'Display order',
                     access => 'Role usage',                      access => 'Role usage',
                     all    => 'All',                      all    => 'All with domain helpdesk or helpdesk assistant role',
                       anydh  => 'All with domain helpdesk role',
                       anyda  => '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',

Removed from v.1.290  
changed lines
  Added in v.1.291


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