getAttribute is for elements, not xpath contexts
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 11 Mar 2008 17:30:34 +0000 (17:30 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 11 Mar 2008 17:30:34 +0000 (17:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8973 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm

index 883d9fd..5583f38 100644 (file)
@@ -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 );