Hide users menu for non-admins (pull-request #284)

This commit is contained in:
Frédéric Guillot
2014-09-27 21:40:47 -04:00
parent 3fa549352c
commit 4aa99e9492
4 changed files with 8 additions and 8 deletions

View File

@@ -90,7 +90,7 @@ class AclTest extends Base
$this->assertFalse($acl->isPageAccessAllowed('user', 'remove'));
$this->assertFalse($acl->isPageAccessAllowed('user', 'confirm'));
$this->assertTrue($acl->isPageAccessAllowed('app', 'index'));
$this->assertTrue($acl->isPageAccessAllowed('user', 'index'));
$this->assertFalse($acl->isPageAccessAllowed('user', 'index'));
$this->assertTrue($acl->isPageAccessAllowed('user', 'login'));
$this->assertTrue($acl->isPageAccessAllowed('user', 'check'));
$this->assertTrue($acl->isPageAccessAllowed('webhook', 'task'));