@@ -5,8 +5,8 @@ import { type ID, ServerException, type Session } from '~/common';
5
5
import { DatabaseService , DbTraceLayer , OnIndex } from '~/core/database' ;
6
6
import {
7
7
ACTIVE ,
8
+ currentUser ,
8
9
matchUserGloballyScopedRoles ,
9
- requestingUser ,
10
10
variable ,
11
11
} from '~/core/database/query' ;
12
12
import { type ScopedRole } from '../authorization/dto' ;
@@ -226,7 +226,7 @@ export class AuthenticationRepository {
226
226
const result = await this . db
227
227
. query ( )
228
228
. match ( [
229
- requestingUser ( session ) ,
229
+ currentUser ,
230
230
relation ( 'out' , '' , 'password' , ACTIVE ) ,
231
231
node ( 'password' , 'Property' ) ,
232
232
] )
@@ -243,7 +243,7 @@ export class AuthenticationRepository {
243
243
await this . db
244
244
. query ( )
245
245
. match ( [
246
- requestingUser ( session ) ,
246
+ currentUser ,
247
247
relation ( 'out' , '' , 'password' , ACTIVE ) ,
248
248
node ( 'password' , 'Property' ) ,
249
249
] )
@@ -331,7 +331,7 @@ export class AuthenticationRepository {
331
331
await this . db
332
332
. query ( )
333
333
. match ( [
334
- requestingUser ( session ) ,
334
+ currentUser ,
335
335
relation ( 'out' , 'oldRel' , 'token' , ACTIVE ) ,
336
336
node ( 'token' , 'Token' ) ,
337
337
] )
0 commit comments