Skip to content

Commit

Permalink
adds role validation
Browse files Browse the repository at this point in the history
  • Loading branch information
HBukvic committed Sep 14, 2023
1 parent 718ccaf commit d839ac3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export class VideoConferenceService {
case VideoConferenceScope.COURSE: {
const user: UserDO = await this.userService.findById(userId);
isExpert = this.existsExpertRole(user.roles);
if (isExpert && user.roles.length > 1) {
isExpert = false;
}
return isExpert;
}
case VideoConferenceScope.EVENT: {
Expand Down

0 comments on commit d839ac3

Please sign in to comment.