[Koha-bugs] [Bug 14407] Limit web-based self-checkout to specific IP addresses
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 11 16:30:11 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14407
Frédéric Demians <frederic at tamil.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |frederic at tamil.fr
--- Comment #11 from Frédéric Demians <frederic at tamil.fr> ---
Implementation note: Some code seems to be repeated in various places:
my @allowedipranges = split(' ',
C4::Context->preference('SelfCheckAllowByIPRanges'));
if (scalar @allowedipranges > 0) {
unless (Net::CIDR::cidrlookup($ENV{'REMOTE_ADDR'},
Net::CIDR::range2cidr(@allowedipranges))) {
# action
exit;
}
}
Couldn't it be a good candidate to a new function in C4::Auth? Or even a new
parameter to C4::Auth::get_template_and_user()?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list