mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Api: Fix Links/StreamWrapperTest->testWithAccess() was failing due to no app permissions
This commit is contained in:
parent
6622de0eb6
commit
657119b389
@ -66,6 +66,10 @@ class StreamWrapperTest extends Vfs\StreamWrapperBase
|
|||||||
|
|
||||||
protected function allowAccess(string $test_name, string &$test_file, int $test_user, string $needed) : void
|
protected function allowAccess(string $test_name, string &$test_file, int $test_user, string $needed) : void
|
||||||
{
|
{
|
||||||
|
// Make sure user has infolog run rights
|
||||||
|
$command = new \admin_cmd_acl(true, $test_user,'infolog','run',Api\Acl::READ);
|
||||||
|
$command->run();
|
||||||
|
|
||||||
// We'll allow access by putting test user in responsible
|
// We'll allow access by putting test user in responsible
|
||||||
$so = new \infolog_so();
|
$so = new \infolog_so();
|
||||||
$element = $so->read(Array('info_id' => $this->entries[0]));
|
$element = $so->read(Array('info_id' => $this->entries[0]));
|
||||||
|
Loading…
Reference in New Issue
Block a user