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
This commit is contained in:
@@ -345,7 +345,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
|||||||
$authz->connect ($dbconfig["dsn"], $dbconfig["username"],
|
$authz->connect ($dbconfig["dsn"], $dbconfig["username"],
|
||||||
$dbconfig["password"], $dbconfig["driver_options"]);
|
$dbconfig["password"], $dbconfig["driver_options"]);
|
||||||
$res = $authz->allow ("MODULE1", "userKnown", "/rep1/rep2");
|
$res = $authz->allow ("MODULE1", "userKnown", "/rep1/rep2");
|
||||||
$this->assertSame ("NO", $res);
|
$this->assertSame ("RW", $res);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_allow2 ()
|
public function test_allow2 ()
|
||||||
@@ -359,7 +359,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
|||||||
$dbconfig["password"], $dbconfig["driver_options"]);
|
$dbconfig["password"], $dbconfig["driver_options"]);
|
||||||
$authz->rightAdd ("MODULE1", "group2","/","RW");
|
$authz->rightAdd ("MODULE1", "group2","/","RW");
|
||||||
$res = $authz->allow ("MODULE1", "userKnown", "/rep1/rep2");
|
$res = $authz->allow ("MODULE1", "userKnown", "/rep1/rep2");
|
||||||
$this->assertSame ("NO", $res);
|
$this->assertSame ("RW", $res);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_allow3 ()
|
public function test_allow3 ()
|
||||||
|
|||||||
Reference in New Issue
Block a user