version 1.97, 2009/08/14 10:37:22
|
version 1.100, 2009/09/12 17:06:16
|
Line 2122 function username_display_launch(usernam
|
Line 2122 function username_display_launch(usernam
|
document.location.href = '/adm/'+domain+'/'+username+'/aboutme'; |
document.location.href = '/adm/'+domain+'/'+username+'/aboutme'; |
} |
} |
} |
} |
|
if (target == 'track') { |
|
if (document.$formname.userwin.checked == true) { |
|
var url = '/adm/trackstudent?selected_student='+username+':'+domain+'&only_body=1'; |
|
var options = 'height=600,width=800,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'; |
|
var trackwin = window.open(url,'',options,1); |
|
trackwin.focus(); |
|
return; |
|
} else { |
|
document.location.href = '/adm/trackstudent?selected_student='+username+':'+domain; |
|
} |
|
} |
} |
} |
// ]]> |
// ]]> |
</script> |
</script> |
Line 2156 END
|
Line 2167 END
|
'aboutme' => "Display a user's personal information page", |
'aboutme' => "Display a user's personal information page", |
'owin' => "Open in a new window", |
'owin' => "Open in a new window", |
'modify' => "Modify a user's information", |
'modify' => "Modify a user's information", |
|
'track' => "View a user's recent activity", |
'clicker' => "Clicker-ID", |
'clicker' => "Clicker-ID", |
); |
); |
if ($context eq 'domain' && $env{'form.roletype'} eq 'course') { |
if ($context eq 'domain' && $env{'form.roletype'} eq 'course') { |
Line 2269 END
|
Line 2281 END
|
if ($permission->{'cusr'}) { |
if ($permission->{'cusr'}) { |
unshift (@linkdests,'modify'); |
unshift (@linkdests,'modify'); |
} |
} |
|
if (&Apache::lonnet::allowed('vsa', $env{'request.course.id'}) || |
|
&Apache::lonnet::allowed('vsa', $env{'request.course.id'}.'/'. |
|
$env{'request.course.sec'})) { |
|
push(@linkdests,'track'); |
|
} |
|
|
$output .= '<td>'; |
$output .= '<td>'; |
my $usernamelink = $env{'form.usernamelink'}; |
my $usernamelink = $env{'form.usernamelink'}; |
if ($usernamelink eq '') { |
if ($usernamelink eq '') { |
Line 4727 sub can_create_user {
|
Line 4745 sub can_create_user {
|
} |
} |
if (ref($domconf{'usercreation'}) eq 'HASH') { |
if (ref($domconf{'usercreation'}) eq 'HASH') { |
if (ref($domconf{'usercreation'}{'cancreate'}) eq 'HASH') { |
if (ref($domconf{'usercreation'}{'cancreate'}) eq 'HASH') { |
if ($context eq 'course' || $context eq 'author') { |
if ($context eq 'course' || $context eq 'author' || $context eq 'requestcrs') { |
my $creation = $domconf{'usercreation'}{'cancreate'}{$context}; |
my $creation = $domconf{'usercreation'}{'cancreate'}{$context}; |
if ($creation eq 'none') { |
if ($creation eq 'none') { |
$cancreate = 0; |
$cancreate = 0; |
Line 4828 sub roles_by_context {
|
Line 4846 sub roles_by_context {
|
my ($context,$custom) = @_; |
my ($context,$custom) = @_; |
my @allroles; |
my @allroles; |
if ($context eq 'course') { |
if ($context eq 'course') { |
@allroles = ('st','ad','ta','ep','in','cc'); |
@allroles = ('st'); |
|
if ($env{'request.role'} =~ m{^dc\./}) { |
|
push(@allroles,'ad'); |
|
} |
|
push(@allroles,('ta','ep','in','cc')); |
if ($custom) { |
if ($custom) { |
push(@allroles,'cr'); |
push(@allroles,'cr'); |
} |
} |
} elsif ($context eq 'author') { |
} elsif ($context eq 'author') { |
@allroles = ('ca','aa'); |
@allroles = ('ca','aa'); |
} elsif ($context eq 'domain') { |
} elsif ($context eq 'domain') { |
@allroles = ('li','dg','sc','au','dc'); |
@allroles = ('li','ad','dg','sc','au','dc'); |
} |
} |
return @allroles; |
return @allroles; |
} |
} |