store the viewer in the request context

This commit is contained in:
Spine
2025-02-13 00:28:06 +00:00
parent 203059a5b3
commit ed3ec08d08
42 changed files with 277 additions and 165 deletions

View File

@@ -18,6 +18,7 @@ class RequestTest extends TestCase {
'admin' => Helper::makeUser('req.' . randomString(10), 'request'),
'user' => Helper::makeUser('req.' . randomString(10), 'request'),
];
$this->userList['admin']->requestContext()->setViewer($this->userList['admin']);
$this->userList['admin']->setField('Enabled', '1')->setField('PermissionID', SYSOP)->modify();
$this->userList['user']->setField('Enabled', '1')->modify();
}