diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-19 16:54:11 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-19 16:54:11 -0600 |
| commit | 9afffed3a7a95c875d4b40b472c8403c98948a26 (patch) | |
| tree | 0064ee6b0c5d80e9cc08e6f7f47f6e62a558207d /src/slskd/Users/IUserService.cs | |
| parent | de185440272729fc726d8ca26a6030a683365582 (diff) | |
| download | slskd-9afffed3a7a95c875d4b40b472c8403c98948a26.tar.gz | |
cache privileges
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
| -rw-r--r-- | src/slskd/Users/IUserService.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs index b1e98a19..f7a03a33 100644 --- a/src/slskd/Users/IUserService.cs +++ b/src/slskd/Users/IUserService.cs @@ -30,7 +30,7 @@ namespace slskd.Users /// </summary> /// <param name="username">The username of the peer.</param> /// <returns>The group for the specified username.</returns> - Task<string> GetGroupAsync(string username); + string GetGroup(string username); /// <summary> /// Retrieves peer <see cref="Info"/>. @@ -66,8 +66,9 @@ namespace slskd.Users /// Retrieves a value indicating whether the specified peer is privileged. /// </summary> /// <param name="username">The username of the peer.</param> + /// <param name="bypassCache">A value indicating whether to bypass the cache and query the server.</param> /// <returns>A value indicating whether the specified peer is privileged.</returns> - Task<bool> IsPrivilegedAsync(string username); + Task<bool> IsPrivilegedAsync(string username, bool bypassCache = false); /// <summary> /// Adds the specified username to the server-side user list. |
