mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 08:16:05 -07:00
#788 fixed!
This commit is contained in:
parent
5c023341b6
commit
ce95fe468f
1 changed files with 18 additions and 5 deletions
|
@ -232,12 +232,25 @@ namespace PlexRequests.UI.Modules
|
||||||
{
|
{
|
||||||
if (!settings.UserAuthentication)// Do not need to auth make admin use login screen for now TODO remove this
|
if (!settings.UserAuthentication)// Do not need to auth make admin use login screen for now TODO remove this
|
||||||
{
|
{
|
||||||
var perms = (Permissions)dbUser.Permissions;
|
if (dbUser != null)
|
||||||
if (perms.HasFlag(Permissions.Administrator))
|
|
||||||
{
|
{
|
||||||
var uri = Linker.BuildRelativeUri(Context, "UserLoginIndex");
|
var perms = (Permissions) dbUser.Permissions;
|
||||||
Session["TempMessage"] = Resources.UI.UserLogin_AdminUsePassword;
|
if (perms.HasFlag(Permissions.Administrator))
|
||||||
return Response.AsRedirect(uri.ToString());
|
{
|
||||||
|
var uri = Linker.BuildRelativeUri(Context, "UserLoginIndex");
|
||||||
|
Session["TempMessage"] = Resources.UI.UserLogin_AdminUsePassword;
|
||||||
|
return Response.AsRedirect(uri.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (plexLocal != null)
|
||||||
|
{
|
||||||
|
var perms = (Permissions)plexLocal.Permissions;
|
||||||
|
if (perms.HasFlag(Permissions.Administrator))
|
||||||
|
{
|
||||||
|
var uri = Linker.BuildRelativeUri(Context, "UserLoginIndex");
|
||||||
|
Session["TempMessage"] = Resources.UI.UserLogin_AdminUsePassword;
|
||||||
|
return Response.AsRedirect(uri.ToString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue