diff options
author | Frédéric Guillot <fred@kanboard.net> | 2015-01-02 22:14:28 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2015-01-02 22:14:28 -0500 |
commit | 5c6b67bd7605485db2b19a8838838b7c4455e3b6 (patch) | |
tree | 69594e840844bf59cab7cedd83a8a833234690de /tests/units/AclTest.php | |
parent | 0ebdd4ddfd898628cc30e34e55e97f88e5e30a71 (diff) |
Allow project managers to remove tasks
Diffstat (limited to 'tests/units/AclTest.php')
-rw-r--r-- | tests/units/AclTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } |