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

(-)a/C4/Auth.pm (-16 / +18 lines)
Lines 476-496 sub get_template_and_user { Link Here
476
476
477
    # Sysprefs disabled via URL param
477
    # Sysprefs disabled via URL param
478
    # Note that value must be defined in order to override via ENV
478
    # Note that value must be defined in order to override via ENV
479
    foreach my $syspref (
479
    # Only allow syspref overrides for users with debug permission
480
        qw(
480
    if ( C4::Context->userenv && haspermission( C4::Context->userenv->{'id'}, { debug => 1 } ) ) {
481
        OPACUserCSS
481
        foreach my $syspref (
482
        OPACUserJS
482
            qw(
483
        IntranetUserCSS
483
            OPACUserCSS
484
        IntranetUserJS
484
            OPACUserJS
485
        OpacAdditionalStylesheet
485
            IntranetUserCSS
486
        opaclayoutstylesheet
486
            IntranetUserJS
487
        intranetcolorstylesheet
487
            OpacAdditionalStylesheet
488
        intranetstylesheet
488
            opaclayoutstylesheet
489
        )
489
            intranetcolorstylesheet
490
        )
490
            intranetstylesheet
491
    {
491
            )
492
        $ENV{"OVERRIDE_SYSPREF_$syspref"} = q{}
492
            )
493
            if $in->{'query'}->param("DISABLE_SYSPREF_$syspref");
493
        {
494
            $ENV{"OVERRIDE_SYSPREF_$syspref"} = q{}
495
                if $in->{'query'}->param("DISABLE_SYSPREF_$syspref");
496
        }
494
    }
497
    }
495
498
496
    # Anonymous opac search history
499
    # Anonymous opac search history
497
- 

Return to bug 39142