[Koha-bugs] [Bug 10277] Add C4::Context->IsSuperLibrarian()

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 3 18:09:11 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10277

--- Comment #11 from Galen Charlton <gmcharlt at gmail.com> ---
(In reply to comment #10)
> my $userenv = C4::Context->userenv or carp(...);
> return C4::Context->userenv->{flags} % 2 == 1;
> 
> It saves one C4::Context->userenv call.

Does it?  Did you mean

my $userenv = C4::Context->userenv or carp(...);
return $userenv->{flags} % 2 == 1;

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list