Tidied up some of the angular code, split the UI into it's own directives for easier maintainability

Also changed the spinner to white for #715
This commit is contained in:
Jamie.Rees 2016-12-02 08:57:42 +00:00
commit 0185e8238d
13 changed files with 264 additions and 203 deletions

View file

@ -67,12 +67,20 @@ namespace PlexRequests.Core
public bool IsPlexUser(IUserIdentity user)
{
if (user == null)
{
return false;
}
var plexUser = PlexUsers.GetUserByUsername(user.UserName);
return plexUser != null;
}
public bool IsNormalUser(IUserIdentity user)
{
if (user == null)
{
return false;
}
var dbUser = UserRepository.GetUserByUsername(user.UserName);
return dbUser != null;