mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Come on Travis... Test works now?
This commit is contained in:
parent
dc607edee4
commit
fe2f769e63
@ -265,18 +265,8 @@ class AclCommandTest extends CommandBase {
|
|||||||
// Check that user gets it too
|
// Check that user gets it too
|
||||||
$acl = new Acl($this->account_id);
|
$acl = new Acl($this->account_id);
|
||||||
$acl->read_repository();
|
$acl->read_repository();
|
||||||
if($GLOBALS['egw_info']['server']['acl_default'] != 'deny')
|
|
||||||
{
|
$this->assertFalse($acl->check($data['location'], Acl::ADD, static::APP));
|
||||||
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']));
|
$this->assertEquals(0, $acl->get_rights($data['location'], $data['app']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user