diff --git a/BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs b/BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs index 0ee30f289..92f5b650a 100644 --- a/BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs +++ b/BTCPayServer.Abstractions/Security/AuthorizationFilterHandle.cs @@ -8,7 +8,7 @@ public class AuthorizationFilterHandle public AuthorizationHandlerContext Context { get; } public PolicyRequirement Requirement { get; } public HttpContext HttpContext { get; } - public bool Success { get; } + public bool Success { get; private set; } public AuthorizationFilterHandle( AuthorizationHandlerContext context, @@ -19,4 +19,9 @@ public class AuthorizationFilterHandle Requirement = requirement; HttpContext = httpContext; } + + public void MarkSuccessful() + { + Success = true; + } }