backend: update permission error handling in RoomMemberService to throw errorInsufficientPermissions

This commit is contained in:
juancarmore 2026-02-10 11:17:27 +01:00
parent fd675573fc
commit 38b3db6171

View File

@ -451,7 +451,7 @@ export class RoomMemberService {
const member = await this.getRoomMember(roomId, user.userId);
if (!member) {
throw errorUnauthorized();
throw errorInsufficientPermissions();
}
memberId = user.userId;