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

(-)a/C4/Auth.pm (+17 lines)
Lines 1057-1062 sub checkauth { Link Here
1057
                }
1057
                }
1058
            }
1058
            }
1059
1059
1060
            # If shib configured and shibOnly enabled, we should ignore anything other than a shibboleth type login.
1061
            if (
1062
                   $shib
1063
                && !$shibSuccess
1064
                && (
1065
                    (
1066
                        ( $type eq 'opac' )
1067
                        && C4::Context->preference('opacShibOnly')
1068
                    )
1069
                    || ( ( $type ne 'opac' )
1070
                        && C4::Context->preference('staffShibOnly') )
1071
                )
1072
              )
1073
            {
1074
                $return = 0;
1075
            }
1076
1060
            # $return: 1 = valid user
1077
            # $return: 1 = valid user
1061
            if ($return) {
1078
            if ($return) {
1062
1079
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +4 lines)
Lines 71-76 Link Here
71
                                        [% IF Koha.Preference('casAuthentication') %]
71
                                        [% IF Koha.Preference('casAuthentication') %]
72
                                            [%# CAS authentication is too complicated for modal window %]
72
                                            [%# CAS authentication is too complicated for modal window %]
73
                                            <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive" role="menuitem">Log in to create your own lists</a></li>
73
                                            <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive" role="menuitem">Log in to create your own lists</a></li>
74
                                        [% ELSIF shibbolethAuthentication && Koha.Preference('opacShibOnly') %]
75
                                            <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive" role="menuitem">Log in to create your own lists</a></li>
74
                                        [% ELSE %]
76
                                        [% ELSE %]
75
                                            <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li>
77
                                            <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li>
76
                                        [% END %]
78
                                        [% END %]
Lines 95-100 Link Here
95
                                            <li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
97
                                            <li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
96
                                        [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
98
                                        [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
97
                                            <li><a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li>
99
                                            <li><a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li>
100
                                        [% ELSIF shibbolethAuthentication && Koha.Preference('opacShibOnly') %]
101
                                            <li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
98
                                        [% ELSE %]
102
                                        [% ELSE %]
99
                                            <li><a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
103
                                            <li><a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
100
                                        [% END %]
104
                                        [% END %]
101
- 

Return to bug 18506