From 035507338bc0a13d04d14ef9874e6a6ee977e30e Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Fri, 16 Mar 2012 13:56:57 -0400 Subject: [PATCH] LP#707167 Make open-ils.actor.usrname.exists not ignore deleted users Currently, open-ils.actor.usrname.exists filters out deleted users. This results in a user recieving indication as to why a user update failed, when the reason is the username they're attempting to use is in use, but is "deleted" in the database. This branch makes open-ils.actor.usrname.exists look at deleted users since they still prevent re-use of the delted user's username. More information is in the original bug, https://bugs.launchpad.net/evergreen/+bug/707167. Signed-off-by: Michael Peters Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm index 3fa922c152..1599d30128 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm @@ -2664,7 +2664,7 @@ sub usrname_exists { my( $self, $conn, $auth, $usrname ) = @_; my $e = new_editor(authtoken=>$auth); return $e->event unless $e->checkauth; - my $a = $e->search_actor_user({usrname => $usrname, deleted=>'f'}, {idlist=>1}); + my $a = $e->search_actor_user({usrname => $usrname}, {idlist=>1}); return $$a[0] if $a and @$a; return undef; } -- 2.43.2