Use the user alias everywhere if it is set #218

This commit is contained in:
tidusjar 2016-11-20 19:16:22 +00:00
commit eb120e6840
3 changed files with 50 additions and 1 deletions

View file

@ -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);
}
}