minor change
This commit is contained in:
parent
b52c240593
commit
ba0b486d5a
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,10 +10,6 @@
|
|||
<OutputPath>$(SolutionDir)packages</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Providers\Realtime\2lpg51hd.uih~" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="OpenAI" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in a new issue