version 1.461, 2022/11/10 14:08:37
|
version 1.464, 2022/11/17 19:07:21
|
Line 261 sub build_tools_display {
|
Line 261 sub build_tools_display {
|
'lti' => 'Can request creation of LTI courses', |
'lti' => 'Can request creation of LTI courses', |
'requestauthor' => 'Can request author space', |
'requestauthor' => 'Can request author space', |
); |
); |
|
$isadv = &Apache::lonnet::is_advanced_user($ccdomain,$ccuname); |
if ($context eq 'requestcourses') { |
if ($context eq 'requestcourses') { |
%userenv = &Apache::lonnet::userenvironment($ccdomain,$ccuname, |
%userenv = &Apache::lonnet::userenvironment($ccdomain,$ccuname, |
'requestcourses.official','requestcourses.unofficial', |
'requestcourses.official','requestcourses.unofficial', |
Line 274 sub build_tools_display {
|
Line 275 sub build_tools_display {
|
$colspan = ' colspan="2"'; |
$colspan = ' colspan="2"'; |
%domconfig = |
%domconfig = |
&Apache::lonnet::get_dom('configuration',['requestcourses'],$ccdomain); |
&Apache::lonnet::get_dom('configuration',['requestcourses'],$ccdomain); |
$isadv = &Apache::lonnet::is_advanced_user($ccdomain,$ccuname); |
|
} elsif ($context eq 'requestauthor') { |
} elsif ($context eq 'requestauthor') { |
%userenv = &Apache::lonnet::userenvironment($ccdomain,$ccuname, |
%userenv = &Apache::lonnet::userenvironment($ccdomain,$ccuname, |
'requestauthor'); |
'requestauthor'); |
Line 296 sub build_tools_display {
|
Line 296 sub build_tools_display {
|
$currdisp,$custdisp,$custradio); |
$currdisp,$custdisp,$custradio); |
$cust_off = 'checked="checked" '; |
$cust_off = 'checked="checked" '; |
$tool_on = 'checked="checked" '; |
$tool_on = 'checked="checked" '; |
$curr_access = |
$curr_access = |
&Apache::lonnet::usertools_access($ccuname,$ccdomain,$item,undef, |
&Apache::lonnet::usertools_access($ccuname,$ccdomain,$item,undef, |
$context); |
$context,\%userenv,'', |
|
{'is_adv' => $isadv}); |
if ($context eq 'requestauthor') { |
if ($context eq 'requestauthor') { |
if ($userenv{$context} ne '') { |
if ($userenv{$context} ne '') { |
$cust_on = ' checked="checked" '; |
$cust_on = ' checked="checked" '; |
Line 3426 sub update_user_data {
|
Line 3427 sub update_user_data {
|
&Apache::lonnet::appenv(\%newenvhash); |
&Apache::lonnet::appenv(\%newenvhash); |
} |
} |
} |
} |
|
if ($changed{'aboutme'}) { |
|
&Apache::loncommon::devalidate_aboutme_cache($env{'form.ccuname'}, |
|
$env{'form.ccdomain'}); |
|
} |
} |
} |
} |
} |
if (keys(%namechanged) > 0) { |
if (keys(%namechanged) > 0) { |
Line 5361 sub handler {
|
Line 5366 sub handler {
|
'<span class="LC_error">'.&mt('You do not have permission to view change logs').'</span>'); |
'<span class="LC_error">'.&mt('You do not have permission to view change logs').'</span>'); |
} |
} |
} elsif ($env{'form.action'} eq 'helpdesk') { |
} elsif ($env{'form.action'} eq 'helpdesk') { |
if (($permission->{'owner'}) || ($permission->{'co-owner'})) { |
if (($permission->{'owner'} || $permission->{'co-owner'}) && |
|
($permission->{'cusr'} || $permission->{'view'})) { |
if ($env{'form.state'} eq 'process') { |
if ($env{'form.state'} eq 'process') { |
if ($permission->{'owner'}) { |
if ($permission->{'owner'}) { |
&update_helpdeskaccess($r,$permission,$brcrum); |
&update_helpdeskaccess($r,$permission,$brcrum); |
Line 5791 sub print_main_menu {
|
Line 5797 sub print_main_menu {
|
icon => 'helpdesk-access.png', |
icon => 'helpdesk-access.png', |
#help => 'Course_Helpdesk_Access', |
#help => 'Course_Helpdesk_Access', |
url => '/adm/createuser?action=helpdesk', |
url => '/adm/createuser?action=helpdesk', |
permission => ($permission->{'owner'} || $permission->{'co-owner'}), |
permission => (($permission->{'owner'} || $permission->{'co-owner'}) && |
|
($permission->{'view'} || $permission->{'cusr'})), |
linktitle => 'Helpdesk access options', |
linktitle => 'Helpdesk access options', |
}, |
}, |
{ |
{ |