Skip to content

Commit

Permalink
Update AddMentorToGroupCommandHandler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
PhucNghi176 authored Oct 23, 2024
1 parent b6b6f06 commit 3f41462
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MBS_COMMAND.Contract.Abstractions.Messages;
using MBS_COMMAND.Contract.Abstractions.Messages;
using MBS_COMMAND.Contract.Abstractions.Shared;
using MBS_COMMAND.Contract.Services.Groups;
using MBS_COMMAND.Domain.Abstractions;
Expand All @@ -20,7 +20,7 @@ public async Task<Result> Handle(Command.AddMentorToGroup request, CancellationT
{
return Result.Failure(new Error("404", "User not found"));
}
if(user.Role!=2)
if(user.Role!=1)
{
return Result.Failure(new Error("403", "User is not a mentor"));
}
Expand Down

0 comments on commit 3f41462

Please sign in to comment.