From: miker Date: Tue, 11 Mar 2008 17:30:34 +0000 (+0000) Subject: getAttribute is for elements, not xpath contexts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d96eceebd72f35e30443abe7a93389832b731392;p=Evergreen.git getAttribute is for elements, not xpath contexts git-svn-id: svn://svn.open-ils.org/ILS/trunk@8973 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 );