[open-ils-commits] r9759 -
branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jun 2 23:33:44 EDT 2008
Author: erickson
Date: 2008-06-02 23:33:42 -0400 (Mon, 02 Jun 2008)
New Revision: 9759
Modified:
branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
Log:
adding is_true wrapper on super_user test. toggled boolean test to allow superuser to edit perms
Modified: branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
===================================================================
--- branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2008-06-03 03:32:19 UTC (rev 9758)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2008-06-03 03:33:42 UTC (rev 9759)
@@ -842,7 +842,7 @@
my $perms = $session->request('open-ils.storage.permission.user_perms.atomic', $user_obj->id)->gather(1);
my $all = undef;
- $all = 1 if ($user_obj->super_user());
+ $all = 1 if ($U->is_true($user_obj->super_user()));
$all = 1 unless ($U->check_perms($user_obj->id, $user_obj->home_ou, 'EVERYTHING'));
for my $map (@$maps) {
@@ -855,7 +855,7 @@
$map->clear_id;
}
- next if (!$all || !grep { $_->perm eq $map->perm and $_->grantable == 1 and $_->depth <= $map->depth } @$perms);
+ next if (!$all and !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" );
More information about the open-ils-commits
mailing list