X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-tags_subject.pl;h=a19f406db9dbc3ef01c3b3006b618607d4287922;hb=d91bb113f04149c020c851a904de69619b6e9dd8;hp=65fb5cd10d7e94be167c22b54b66150d91b6cdf3;hpb=606ecb532aa42562687bf0d05b4d6df6697300d7;p=koha_fer diff --git a/opac/opac-tags_subject.pl b/opac/opac-tags_subject.pl index 65fb5cd10d..a19f406db9 100755 --- a/opac/opac-tags_subject.pl +++ b/opac/opac-tags_subject.pl @@ -13,9 +13,9 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. =head1 opac-tags_subject.pl @@ -25,7 +25,8 @@ TODO :: Description here =cut use strict; -require Exporter; +use warnings; + use C4::Auth; use C4::Context; use C4::Output; @@ -43,7 +44,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( template_name => "opac-tags_subject.tmpl", query => $query, type => "opac", - authnotrequired => 1, + authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), debug => 1, } );