[Koha-bugs] [Bug 6804] If IndependantBranches and AutoLocation enabled, OPAC login does not redirect properly outside IP range

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 4 14:30:21 CET 2011


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

Sophie MEYNIEUX <sophie.meynieux at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5214|0                           |1
        is obsolete|                            |

--- Comment #2 from Sophie MEYNIEUX <sophie.meynieux at biblibre.com> 2011-11-04 13:30:21 UTC ---
Created attachment 6198
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6198
[SIGNED-OFF] Bug 6804: if IndependantBranches & AutoLocation, OPAC login
redirect fails

AutoLocation should only apply to the staff client login, but when
IndependantBranches
was activated, it applied to the OPAC login, as well.  Login was not prevented,
but the
patron was greeted with another login prompt, instead of the My Summary page. 
Very confusing.

This patch adds a check for whether this is an OPAC login before executing the
particular code
that was causing this.

To test:
1.  Enable IndependantBranches & AutoLocation (be sure your branches have IP
ranges configured!)
2.  Select a staff account, and note the branch
3.  Attempt to login to the staff client from within the IP range for the
branch: this should work
4.  Attempt to login to the staff client from outside the IP range:  this
should be blocked
5.  Attempt to login to the OPAC from within the IP range: this should work
6.  Attempt to login to the OPAC from outside the IP range: this should also
work

Signed-off-by: Sophie Meynieux <sophie.meynieux at biblibre.com>

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list