version 1.14, 2013/12/13 02:10:27
|
version 1.16, 2014/05/17 21:43:55
|
Line 38 sub handler {
|
Line 38 sub handler {
|
|
|
if ($r->uri() =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { |
if ($r->uri() =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { |
if ($r->user() eq '') { |
if ($r->user() eq '') { |
$r->user('public'); |
$r->user('public:public'); |
} |
} |
return OK; |
return OK; |
} |
} |
|
|
if (&Apache::lonnet::is_domainimage($r->uri)) { |
if (&Apache::lonnet::is_domainimage($r->uri)) { |
if ($r->user() eq '') { |
if ($r->user() eq '') { |
$r->user('public'); |
$r->user('public:public'); |
} |
} |
return OK; |
return OK; |
} |
} |
Line 66 sub handler {
|
Line 66 sub handler {
|
&& $env{'user.domain'} eq 'public') { |
&& $env{'user.domain'} eq 'public') { |
if ($env{'request.publicaccess'} ) { |
if ($env{'request.publicaccess'} ) { |
if ($r->user() eq '') { |
if ($r->user() eq '') { |
$r->user('public'); |
$r->user('public:public'); |
} |
} |
return OK; |
return OK; |
} else { |
} else { |
Line 97 sub handler {
|
Line 97 sub handler {
|
} |
} |
return OK; |
return OK; |
} |
} |
if (($fail == FORBIDDEN) && ($r->uri eq '/adm/email')) { |
if (($fail == FORBIDDEN) && |
|
(($r->uri eq '/adm/email') || ($r->uri eq '/adm/preferences') || |
|
($r->uri eq '/adm/requestcourse'))) { |
$env{'form.firsturl'} = $r->uri; |
$env{'form.firsturl'} = $r->uri; |
} |
} |
return $fail; |
return $fail; |