View | Details | Raw Unified | Return to bug 30444
Collapse All | Expand All

(-)a/C4/Auth.pm (-2 / +1 lines)
Lines 1456-1462 sub checkauth { Link Here
1456
1456
1457
    if ($shib) {
1457
    if ($shib) {
1458
        #If shibOnly is enabled just go ahead and redirect directly
1458
        #If shibOnly is enabled just go ahead and redirect directly
1459
        if ( (($type eq 'opac') && C4::Context->preference('OPACShibOnly')) || (($type ne 'opac') && C4::Context->preference('staffShibOnly')) ) {
1459
        if ( (($type eq 'opac') && C4::Context->preference('OPACShibOnly') && !$query->param('sco_user_login') ) || (($type ne 'opac') && C4::Context->preference('staffShibOnly')) ) {
1460
            my $redirect_url = login_shib_url( $query );
1460
            my $redirect_url = login_shib_url( $query );
1461
            print $query->redirect( -uri => "$redirect_url", -status => 303 );
1461
            print $query->redirect( -uri => "$redirect_url", -status => 303 );
1462
            safe_exit;
1462
            safe_exit;
1463
- 

Return to bug 30444