From 5c6b67bd7605485db2b19a8838838b7c4455e3b6 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 2 Jan 2015 22:14:28 -0500 Subject: Allow project managers to remove tasks --- tests/units/AclTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/units') diff --git a/tests/units/AclTest.php b/tests/units/AclTest.php index 3c18beae..41af8950 100644 --- a/tests/units/AclTest.php +++ b/tests/units/AclTest.php @@ -59,7 +59,6 @@ class AclTest extends Base $this->assertTrue($acl->isManagerAction('project', 'disable')); $this->assertTrue($acl->isManagerAction('category', 'index')); $this->assertTrue($acl->isManagerAction('project', 'users')); - $this->assertTrue($acl->isManagerAction('task', 'remove')); $this->assertFalse($acl->isManagerAction('app', 'index')); } @@ -183,7 +182,8 @@ class AclTest extends Base $this->assertTrue($acl->isAllowed('project', 'show', 1)); $this->assertFalse($acl->isAllowed('config', 'application', 1)); $this->assertFalse($acl->isAllowed('project', 'users', 1)); - $this->assertFalse($acl->isAllowed('task', 'remove', 1)); + $this->assertTrue($acl->isAllowed('task', 'remove', 1)); + $this->assertFalse($acl->isAllowed('task', 'remove', 2)); $this->assertTrue($acl->isAllowed('app', 'index', 1)); } -- cgit v1.2.3