From 152b067c19f22452c78b4af25e058c397a79bab1 Mon Sep 17 00:00:00 2001 From: miker Date: Sun, 14 Dec 2008 21:29:46 +0000 Subject: [PATCH] split on space now, instead of pipe git-svn-id: svn://svn.open-ils.org/ILS/trunk@11544 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm b/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm index 32f4f225ab..1f22b86911 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm @@ -124,7 +124,7 @@ sub CRUD_action_object_permcheck { my $perm_field_value = $action_node->getAttribute('permission'); if ($perm_field_value) { - my @perms = split '\|', $perm_field_value; + my @perms = split ' ', $perm_field_value; my @context_ous; if ($action_node->getAttribute('global_required')) { @@ -134,7 +134,7 @@ sub CRUD_action_object_permcheck { my $context_field_value = $action_node->getAttribute('context_field'); if ($context_field_value) { - push @context_ous, $obj->$_ for ( split '\|', $context_field_value ); + push @context_ous, $obj->$_ for ( split ' ', $context_field_value ); } else { for my $context_node ( $xpc->findnodes( "perm:context", $action_node ) ) { my $context_field = $context_node->getAttribute('field'); @@ -154,7 +154,7 @@ sub CRUD_action_object_permcheck { push @context_ous, $remote_object->$context_field; } } else { - push @context_ous, $obj->$_ for ( split '\|', $context_field ); + push @context_ous, $obj->$_ for ( split ' ', $context_field ); } } } -- 2.11.0