http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14407
Frédéric Demians <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #11 from Frédéric Demians <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
