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/Authentication/AuthRole.cs | |
| 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/Authentication/AuthRole.cs')
| -rw-r--r-- | src/slskd/Common/Authentication/AuthRole.cs | 9 |
1 files changed, 5 insertions, 4 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)}"; } } |
