--- loncom/interface/portfolio.pm 2009/01/03 19:14:19 1.204 +++ loncom/interface/portfolio.pm 2009/01/03 19:28:53 1.205 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.204 2009/01/03 19:14:19 raeburn Exp $ +# $Id: portfolio.pm,v 1.205 2009/01/03 19:28:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2253,20 +2253,22 @@ sub handler { } elsif ($env{'form.action'} eq 'rolepicker') { $r->print(&Apache::loncommon::start_page('New role-based condition',undef, {'no_nav_bar' => 1, })); + } elsif ($caller eq 'coursegrp_portfolio') { + $r->print(&Apache::loncommon::start_page($title)); } else { $r->print(&Apache::loncommon::start_page($title,undef, {'bread_crumbs' => $brcrum})); + if (!&Apache::lonnet::usertools_access($uname,$udom,'portfolio')) { + $r->print('

'.&mt('No user portfolio available') .'

'. + &mt('This is a result of one of the following:').''); + $r->print(&Apache::loncommon::end_page()); + return OK; + } } $r->rflush(); - if (!&Apache::lonnet::usertools_access($uname,$udom,'portfolio')) { - $r->print('

'.&mt('No user portfolio available') .'

'. - &mt('This is a result of one of the following:').''); - $r->print(&Apache::loncommon::end_page()); - return OK; - } my ($blocked,$blocktext) = &Apache::loncommon::blocking_status('port',$uname,$udom); if ($blocked) {