From c25d2ab037850d6bc1f84b52ad89213f6682f9f2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 31 Dec 2023 16:51:46 -0600 Subject: wip --- src/slskd/Users/UserService.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs index ebd85d24..91435766 100644 --- a/src/slskd/Users/UserService.cs +++ b/src/slskd/Users/UserService.cs @@ -198,30 +198,30 @@ namespace slskd.Users if (user.Status?.IsPrivileged ?? false) { return Application.PrivilegedGroup; - } + } if (user.Group != null) - { + { return user.Group; } if (user.Statistics?.FileCount < thresholds.Files || user.Statistics?.DirectoryCount < thresholds.Directories) { return Application.LeecherGroup; - } + } } // the user hasn't been added to the dictionary, so we know they aren't part of a user defined group // the caller may have specified status and statistics. check and see. if (status?.IsPrivileged ?? false) - { + { return Application.PrivilegedGroup; } if (statistics?.FileCount < thresholds.Files || statistics?.DirectoryCount < thresholds.Directories) { return Application.LeecherGroup; - } + } return Application.DefaultGroup; } -- cgit v1.2.3