diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-06 18:49:09 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-06-06 18:49:09 -0500 |
| commit | d2f1a0ca65b77cff7b5841df1bbaf3e3342c6df0 (patch) | |
| tree | 1d0d6bc174c41ebd3b1b0b33908e148f4f499093 | |
| parent | 3740aaf2d59add87b87a88864ed459a94b925f5e (diff) | |
| download | slskd-d2f1a0ca65b77cff7b5841df1bbaf3e3342c6df0.tar.gz | |
deprecate old permissions and add a validation error to flag it
| -rw-r--r-- | src/slskd/Core/Options.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 6436a6d2..7fb70fbb 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -235,11 +235,8 @@ namespace slskd [Validate] public RelayOptions Relay { get; init; } = new RelayOptions(); - /// <summary> - /// Gets permission options. - /// </summary> - [Validate] - public PermissionsOptions Permissions { get; init; } = new PermissionsOptions(); + [Obsolete("temporary sentinel to warn users about breaking change. use Transfers.Download.Destination.Permissions instead.")] + public object Permissions { get; init; } = null; /// <summary> /// Gets directory options. @@ -364,6 +361,11 @@ namespace slskd { results.Add(new ValidationResult("The 'integration' key has been renamed to 'integrations'. Add an 's' to the end of the key to remove this error (no other changes were made)")); } + + if (Permissions is not null) + { + results.Add(new ValidationResult("The 'permissions' keys have been moved under a new 'destination' key under transfers -> download, and the behavior has changed. See https://github.com/slskd/slskd/pull/1756 for details")); + } #pragma warning restore CS0618 // Type or member is obsolete return results; |
