Beatnik: Enforce security only at the domain level
authorBen Klang <ben@alkaloid.net>
Tue, 25 May 2010 18:01:47 +0000 (14:01 -0400)
committerBen Klang <ben@alkaloid.net>
Tue, 25 May 2010 18:01:47 +0000 (14:01 -0400)
... not at the per-record level

beatnik/lib/Driver.php

index f3e4bf5..087d986 100644 (file)
@@ -218,7 +218,7 @@ class Beatnik_Driver {
                     throw new Beatnik_Exception(_('You do not have permssion to edit the SOA of this zone.'));
                 }
             } else {
-                $node = 'beatnik:domains:' . $_SESSION['beatnik']['curdomain']['zonename'] . ':' . $info['id'];
+                $node = 'beatnik:domains:' . $_SESSION['beatnik']['curdomain']['zonename'];
                 if (!Beatnik::hasPermission($node, Horde_Perms::EDIT, 2)) {
                     throw new Beatnik_Exception(_('You do not have permssion to edit this record.'));
                 }