https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26383
--- Comment #5 from David Cook <[email protected]> --- Comment on attachment 122341 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122341 Bug 26383: WIP Replace C4::Context->IsSuperLibrarian with Koha::Patron->is_superlibrarian Review of attachment 122341: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=26383&attachment=122341) ----------------------------------------------------------------- ::: C4/Circulation.pm @@ +1073,5 @@ > + > + my $userenv = C4::Context->userenv; > + if ( C4::Context->preference("IndependentBranches") && $userenv ) { > + my $logged_in_user = Koha::Patrons->find($userenv->{number}); > + unless ( $logged_in_user->is_superlibrarian ) { I suppose a more optimal design would be to pass the issuer to CanBookBeIssued via a parameter, but that would probably be too dramatic a refactor for us to do at this point... -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
