mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Use the user alias everywhere if it is set #218
This commit is contained in:
parent
4629301264
commit
eb120e6840
3 changed files with 50 additions and 1 deletions
|
@ -19,5 +19,12 @@ namespace PlexRequests.Core
|
|||
bool IsNormalUser(NancyContext context);
|
||||
bool IsPlexUser(NancyContext context);
|
||||
bool HasPermissions(string userName, Permissions perm);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the username this could be the alias! We should always use this method when getting the username
|
||||
/// </summary>
|
||||
/// <param name="username">The username.</param>
|
||||
/// <returns><c>null</c> if we cannot find a user</returns>
|
||||
string GetUsername(string username);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue