Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/bb6deddfaecb3d6c7c3c6970414444b619bb9106
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
3 additions and
2 deletions
@ -80,7 +80,8 @@ namespace Ombi.Core.Engine
var userDetails = await GetUser ( ) ;
var canRequestOnBehalf = model . RequestOnBehalf . HasValue ( ) ;
var isAdmin = await UserManager . IsInRoleAsync ( userDetails , OmbiRoles . PowerUser )
var isAdmin = Username . Equals ( "API" , StringComparison . CurrentCultureIgnoreCase )
| | await UserManager . IsInRoleAsync ( userDetails , OmbiRoles . PowerUser )
| | await UserManager . IsInRoleAsync ( userDetails , OmbiRoles . Admin ) ;
if ( canRequestOnBehalf & & ! isAdmin )
{
@ -161,7 +161,7 @@ namespace Ombi.Core.Engine
var user = await GetUser ( ) ;
var canRequestOnBehalf = tv . RequestOnBehalf . HasValue ( ) ;
var isAdmin = await UserManager . IsInRoleAsync ( user , OmbiRoles . PowerUser ) | | await UserManager . IsInRoleAsync ( user , OmbiRoles . Admin ) ;
var isAdmin = Username . Equals ( "API" , StringComparison . CurrentCultureIgnoreCase ) | | await UserManager . IsInRoleAsync ( user , OmbiRoles . PowerUser ) | | await UserManager . IsInRoleAsync ( user , OmbiRoles . Admin ) ;
if ( tv . RequestOnBehalf . HasValue ( ) & & ! isAdmin )
{
return new RequestEngineResult