@@ -, +, @@ not have permission - Staff --- koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 +- virtualshelves/shelves.pl | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc @@ -29,7 +29,7 @@
New list
- [% IF op == 'view' %] + [% IF shelf AND op == 'view' %] [% IF can_manage_shelf %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -113,7 +113,7 @@ $(document).ready(function(){ }); [% END %] -[% IF op == 'view' %] +[% IF shelf AND op == 'view' %] $(document).ready(function(){ [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %] $("span.clearall").html(""+_(" Clear all")+"<\/a>"); --- a/virtualshelves/shelves.pl +++ a/virtualshelves/shelves.pl @@ -297,6 +297,7 @@ if ( $op eq 'view' ) { } } else { push @messages, { type => 'error', code => 'unauthorized_on_view' }; + undef $shelf; } } else { push @messages, { type => 'error', code => 'does_not_exist' }; --