[limb-svn] r7132 - 3.x/trunk/limb/acl/tests/cases
svn at limb-project.com
svn at limb-project.com
Tue Jul 29 13:57:07 MSD 2008
Author: korchasa
Date: 2008-07-29 13:57:06 +0400 (Tue, 29 Jul 2008)
New Revision: 7132
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7132
Modified:
3.x/trunk/limb/acl/tests/cases/lmbAclAllowsTest.class.php
Log:
-- add todo test for resource inherits with privelegies level rules
Modified: 3.x/trunk/limb/acl/tests/cases/lmbAclAllowsTest.class.php
===================================================================
--- 3.x/trunk/limb/acl/tests/cases/lmbAclAllowsTest.class.php 2008-07-25 08:05:35 UTC (rev 7131)
+++ 3.x/trunk/limb/acl/tests/cases/lmbAclAllowsTest.class.php 2008-07-29 09:57:06 UTC (rev 7132)
@@ -244,4 +244,20 @@
$this->assertTrue($acl->hasAllows('guest'));
$this->assertTrue($acl->hasAllows('user'));
}
+
+ /**
+ *@todo
+ */
+ function estResourceInherits_WithPrivelegies()
+ {
+ $acl = new lmbAcl();
+ $acl->addRole('user');
+
+ $acl->addResource('news');
+ $acl->addResource('secret', 'news');
+
+ $acl->allow('user', 'news', 'view');
+
+ $this->assertTrue($acl->isAllowed('user', 'secret', 'view'));
+ }
}
More information about the limb-svn
mailing list