diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-22 22:39:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-22 22:39:13 -0500 |
| commit | 6be4f40d3079089ec91d48b05400a1b92b8ca899 (patch) | |
| tree | b022b5290a792a6bfea928315f06c359e86e8b5a /src/slskd/Common | |
| parent | 4b84358f9ee5074873b4f0cc1030c97b10154e46 (diff) | |
| parent | 757c21eb1eb9c88ad46b789561f5dc5a6c7488eb (diff) | |
| download | slskd-6be4f40d3079089ec91d48b05400a1b92b8ca899.tar.gz | |
Merge pull request #1905 from slskd/dumps
Require explicit opt-in for run-time application memory dumps, adjust access level of several core API endpoints
Diffstat (limited to 'src/slskd/Common')
| -rw-r--r-- | src/slskd/Common/Authentication/AuthRole.cs | 9 | ||||
| -rw-r--r-- | src/slskd/Common/Authentication/Role.cs | 1 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Common/Authentication/AuthRole.cs b/src/slskd/Common/Authentication/AuthRole.cs index 958cc143..e9cd38aa 100644 --- a/src/slskd/Common/Authentication/AuthRole.cs +++ b/src/slskd/Common/Authentication/AuthRole.cs @@ -32,6 +32,8 @@ namespace slskd { + using slskd.Authentication; + /// <summary> /// Authentication roles. /// </summary> @@ -40,9 +42,8 @@ namespace slskd /// </remarks> public static class AuthRole { - public const string AdministratorOnly = "Administrator"; - public const string ReadWriteOrAdministrator = "ReadWrite,Administrator"; - public const string GuestOrAdministrator = "Guest,Administrator"; - public const string Any = "ReadOnly,ReadWrite,Guest,Administrator"; + public const string AdministratorOnly = $"{nameof(Role.Administrator)}"; + public const string ReadWriteOrAdministrator = $"{nameof(Role.ReadWrite)},{nameof(Role.Administrator)}"; + public const string Any = $"{nameof(Role.ReadOnly)},{nameof(Role.ReadWrite)},{nameof(Role.Administrator)}"; } } diff --git a/src/slskd/Common/Authentication/Role.cs b/src/slskd/Common/Authentication/Role.cs index d081c198..42314c2d 100644 --- a/src/slskd/Common/Authentication/Role.cs +++ b/src/slskd/Common/Authentication/Role.cs @@ -36,7 +36,6 @@ namespace slskd.Authentication { ReadOnly = 0, ReadWrite = 1, - Guest = 2, Administrator = 3, } } |
