remove RequiresAuth property

This commit is contained in:
Pilzinsel64
2025-06-05 09:16:46 +02:00
parent 097847d286
commit 4cb015615a
2 changed files with 1 additions and 2 deletions

View File

@@ -484,7 +484,7 @@ public class ApiServer : IApiServer
if (string.IsNullOrWhiteSpace(authKey) || DecodeAuthKey(authKey) is not string authKeyDecoded)
authKeyDecoded = null!;
isAuthenticated = CheckAuthentication(authKeyDecoded, handler.Handler, context);
if (handler.Attribute.RequiesAuth && !isAuthenticated)
if (!isAuthenticated)
return new(ApiResult.Unauthorized(), null);
// Get required infos