From d96eceebd72f35e30443abe7a93389832b731392 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 11 Mar 2008 17:30:34 +0000 Subject: [PATCH] getAttribute is for elements, not xpath contexts git-svn-id: svn://svn.open-ils.org/ILS/trunk@8973 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm b/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm index 883d9fd930..5583f38a91 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm @@ -71,7 +71,7 @@ sub CRUD_action_object_permcheck { my ($class_node) = $xpc->findnodes( "//idl:class[\@id='$self->{class_hint}']", $idl->documentElement ); my ($action_node) = $xpc->findnodes( "perm:permacrud/perm:actions/perm:$action", $class_node ); - my $all_perms = $xpc->getAttribute( 'all_perms', $action_node ); + my $all_perms = $action_node->getAttribute( 'all_perms' ); if (!ref($obj)) { my $retrieve_method = 'retrieve_' . $xpc->findvalue( '@oils_obj:fieldmapper', $class_node ); -- 2.43.2