aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-01-01 14:50:08 -0600
committerJP Dillingham <jp@dillingham.me>2024-01-01 14:50:08 -0600
commita72a394f57a90f3c59e73701eeeaa7a89c2a53d5 (patch)
treec56c7c7d07092b6e053c3ad123f1ffe039d352ad
parentaa5d96cae4e38f7617a38b15f234d671d8fd4ba6 (diff)
downloadslskd-a72a394f57a90f3c59e73701eeeaa7a89c2a53d5.tar.gz
add note about privilege detection when returning user info
-rw-r--r--src/slskd/Application.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index d0e34880..29323938 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1359,7 +1359,10 @@ namespace slskd
{
try
{
- var groupName = Users.GetGroup(username);
+ // note: users must first be watched or cached for leech and privilege detection to work.
+ // we are deliberately skipping it here; if the username is watched
+ // leech detection works and they get accurate info, if not, they won't
+ var groupName = Users.ResolveGroup(username);
var group = Transfers.Uploads.Queue.GetGroupInfo(groupName);
// forecast the position at which this user would enter the queue if they were to request