SboxSuperuser/Core/Permissions/ProtectionDecision.cs

A small immutable record type that represents the result of a protection permission check. It stores whether an action is allowed, numeric actor and target levels, and a reason string.

namespace SboxSuperuser.Core.Permissions;

internal sealed record ProtectionDecision( bool IsAllowed, int ActorLevel, int TargetLevel, string Reason );