fix collaboration session
This commit is contained in:
@@ -101,8 +101,8 @@ export class CollaborationSessionSchema extends PothosSchema {
|
|||||||
// }
|
// }
|
||||||
// check if user is participant
|
// check if user is participant
|
||||||
if (
|
if (
|
||||||
!collaborationSession.collaboratorsIds.includes(ctx.http.me.id) &&
|
!collaborationSession.collaboratorsIds.includes(ctx.http.me.id) ||
|
||||||
ctx.http.me.id !== 'user_2nkDilSYEiljIraFGF9PENjILPr'
|
ctx.http.me.id === 'user_2nkDilSYEiljIraFGF9PENjILPr'
|
||||||
)
|
)
|
||||||
throw new Error('User not allowed')
|
throw new Error('User not allowed')
|
||||||
return collaborationSession
|
return collaborationSession
|
||||||
|
|||||||
Reference in New Issue
Block a user