minor change

This commit is contained in:
Jicheng Lu 2025-05-22 16:57:27 -05:00
parent b52c240593
commit ba0b486d5a
2 changed files with 1 additions and 5 deletions

View file

@ -26,7 +26,7 @@ public class BotSharpAuthAttribute : Attribute, IAsyncAuthorizationFilter
var (isAdmin, user) = await userService.IsAdminUser(userIdentity.Id);
if (!isAdmin || user == null)
{
context.Result = new BadRequestResult();
context.Result = new UnauthorizedResult();
}
}
}

View file

@ -10,10 +10,6 @@
<OutputPath>$(SolutionDir)packages</OutputPath>
</PropertyGroup>
<ItemGroup>
<None Remove="Providers\Realtime\2lpg51hd.uih~" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="OpenAI" />
</ItemGroup>