diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-12-31 16:51:46 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-12-31 16:51:46 -0600 |
| commit | c25d2ab037850d6bc1f84b52ad89213f6682f9f2 (patch) | |
| tree | a48c51c6ee50088bfe9c31a65fa122f2aace0a77 /src | |
| parent | bb84c7b1e83765ce03626b12368f11b611ecb8c9 (diff) | |
| download | slskd-c25d2ab037850d6bc1f84b52ad89213f6682f9f2.tar.gz | |
wip
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Users/UserService.cs | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |
