backend: update permission error handling in RoomMemberService to throw errorInsufficientPermissions
This commit is contained in:
parent
fd675573fc
commit
38b3db6171
@ -451,7 +451,7 @@ export class RoomMemberService {
|
||||
const member = await this.getRoomMember(roomId, user.userId);
|
||||
|
||||
if (!member) {
|
||||
throw errorUnauthorized();
|
||||
throw errorInsufficientPermissions();
|
||||
}
|
||||
|
||||
memberId = user.userId;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user