aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/Authentication/AuthRole.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-22 22:39:46 -0500
committerGitHub <noreply@github.com>2026-10-22 22:39:46 -0500
commitb2dcbac8e0b45dc7261b3b486e7392d27e6a04b7 (patch)
treee6ce1f140196c035d3532d8a86343261b949f07d /src/slskd/Common/Authentication/AuthRole.cs
parente6458e011c745eb0b0f6b0ce0474491381438178 (diff)
parent6be4f40d3079089ec91d48b05400a1b92b8ca899 (diff)
downloadslskd-b2dcbac8e0b45dc7261b3b486e7392d27e6a04b7.tar.gz
Merge branch 'master' into fix/version-string-spacing
Diffstat (limited to 'src/slskd/Common/Authentication/AuthRole.cs')
-rw-r--r--src/slskd/Common/Authentication/AuthRole.cs9
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)}";
}
}