mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 15:32:37 -07:00
Fixed an issue where there were some JS errors on the landing page settings and stopped us being redirected to the login sometimes as an admin
This commit is contained in:
parent
c235018e98
commit
2aebbe0259
3 changed files with 159 additions and 151 deletions
|
@ -122,7 +122,7 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
get
|
||||
{
|
||||
if (Context?.CurrentUser == null)
|
||||
if (!LoggedIn)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -130,6 +130,9 @@ namespace PlexRequests.UI.Modules
|
|||
return claims.Contains(UserClaims.Admin) || claims.Contains(UserClaims.PowerUser);
|
||||
}
|
||||
}
|
||||
|
||||
protected bool LoggedIn => Context?.CurrentUser != null;
|
||||
|
||||
protected string Culture { get; set; }
|
||||
protected const string CultureCookieName = "_culture";
|
||||
protected Response SetCookie()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue