From 98439d027973d218d0f2fb39f2db1298f1ac2713 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 22 Sep 2014 11:34:28 +0000 Subject: [PATCH] authzgroups : Return RW if just the leaf is RW and not all the members of the path git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1845 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/authzgroupsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/authzgroupsTest.php b/Tests/authzgroupsTest.php index 489f0c5..f88ef6e 100644 --- a/Tests/authzgroupsTest.php +++ b/Tests/authzgroupsTest.php @@ -345,7 +345,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase $authz->connect ($dbconfig["dsn"], $dbconfig["username"], $dbconfig["password"], $dbconfig["driver_options"]); $res = $authz->allow ("MODULE1", "userKnown", "/rep1/rep2"); - $this->assertSame ("NO", $res); + $this->assertSame ("RW", $res); } public function test_allow2 () @@ -359,7 +359,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase $dbconfig["password"], $dbconfig["driver_options"]); $authz->rightAdd ("MODULE1", "group2","/","RW"); $res = $authz->allow ("MODULE1", "userKnown", "/rep1/rep2"); - $this->assertSame ("NO", $res); + $this->assertSame ("RW", $res); } public function test_allow3 ()