1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Final test fix

This commit is contained in:
Matej Bačo 2022-04-26 10:46:35 +00:00
parent e0426598fc
commit f642f19ca6

View file

@ -553,6 +553,8 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
Authorization::setRole('user:' . $user->getId());
$dbForProject->updateDocument('users', $user->getId(), $user);
$session = $dbForProject->createDocument('sessions', $session
->setAttribute('$read', ['user:' . $user->getId()])
->setAttribute('$write', ['user:' . $user->getId()])