Some more test for ACL test on user now

This commit is contained in:
nathangray 2018-08-29 13:40:16 -06:00
parent 7b8387fd28
commit 2dc59bc807

View File

@ -278,18 +278,8 @@ class AclCommandTest extends CommandBase {
// Check that user gets it too
$acl = new Acl($this->account_id);
$acl->read_repository();
if($GLOBALS['egw_info']['server']['acl_default'] != 'deny')
{
echo "DEBUG: Default allow\n";
// Default allow - nothing means they're allowed
$this->assertTrue($acl->check($data['location'], Acl::ADD, static::APP));
}
else
{
// Default is deny - nothing means not allowed
echo "DEBUG: Default deny\n";
$this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP));
}
$this->assertEquals(0, $acl->get_rights($data['location'], $data['app']));
}