Api: Fix Links/StreamWrapperTest->testWithAccess() was failing due to no app permissions

This commit is contained in:
nathangray 2021-03-11 09:30:11 -07:00
parent 6622de0eb6
commit 657119b389

View File

@ -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]));