diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-22 22:50:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-22 22:50:12 -0500 |
| commit | 39f92b2cb9f1854d02391a2f77cffcd97ebf60df (patch) | |
| tree | e6ce1f140196c035d3532d8a86343261b949f07d /src/slskd/Common | |
| parent | 4b84358f9ee5074873b4f0cc1030c97b10154e46 (diff) | |
| parent | b2dcbac8e0b45dc7261b3b486e7392d27e6a04b7 (diff) | |
| download | slskd-39f92b2cb9f1854d02391a2f77cffcd97ebf60df.tar.gz | |
Merge pull request #1896 from char1es31/fix/version-string-spacing
fix: missing space in version update message
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, } } |
