Bug 17316: Do not display the list's name if the user does not have permission - Staff
Same as previous patch but for the staff interface
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d26cda6f9e)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
d46322c7cd
commit
4e06090d8b
|
|
@ -29,7 +29,7 @@
|
|||
<div id="toolbar" class="btn-toolbar">
|
||||
<div class="btn-group"><a id="newshelf" class="btn btn-small" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&referer=[% op %]"><i class="fa fa-plus"></i> New list</a></div>
|
||||
|
||||
[% IF op == 'view' %]
|
||||
[% IF shelf AND op == 'view' %]
|
||||
[% IF can_manage_shelf %]
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button>
|
||||
|
|
|
|||
|
|
@ -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("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-remove\"></i>"+_(" Clear all")+"<\/a>");
|
||||
|
|
|
|||
|
|
@ -296,6 +296,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' };
|
||||
|
|
|
|||
Loading…
Reference in New Issue