From 657119b389111298287656f8fceb9b810a88b57e Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 11 Mar 2021 09:30:11 -0700 Subject: [PATCH] Api: Fix Links/StreamWrapperTest->testWithAccess() was failing due to no app permissions --- api/tests/Vfs/Links/StreamWrapperTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/tests/Vfs/Links/StreamWrapperTest.php b/api/tests/Vfs/Links/StreamWrapperTest.php index 502d709493..d0ded387d9 100644 --- a/api/tests/Vfs/Links/StreamWrapperTest.php +++ b/api/tests/Vfs/Links/StreamWrapperTest.php @@ -66,6 +66,10 @@ class StreamWrapperTest extends Vfs\StreamWrapperBase 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 $so = new \infolog_so(); $element = $so->read(Array('info_id' => $this->entries[0]));