From: miker Date: Fri, 29 Sep 2006 21:37:18 +0000 (+0000) Subject: logic reversal X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c5fe5cbb6d89baf6a05462dee95424ff28095714;p=evergreen%2Fpines.git logic reversal git-svn-id: svn://svn.open-ils.org/ILS/trunk@6268 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm index 1b5cbb5360..cc5044dfa7 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm @@ -761,7 +761,7 @@ sub set_user_perms { $map->clear_id; } - next unless ($all || (grep { $_->perm eq $map->perm and $_->grantable == 1 and $_->depth >= $map->depth } @$perms)); + next unless ($all || (grep { $_->perm eq $map->perm and $_->grantable == 1 and $_->depth <= $map->depth } @$perms)); #warn( "Updating permissions with method $method and session $ses and map $map" ); $logger->info( "Updating permissions with method $method and map $map" );