mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
support custom master url
refactor api instatation to allow custom master url in config
This commit is contained in:
@ -964,7 +964,12 @@ namespace SharedLibraryCore
|
||||
}
|
||||
|
||||
public static bool ShouldHideLevel(this Permission perm) => perm == Permission.Flagged;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// indicates if running in development mode
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool IsDevelopment => Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development";
|
||||
|
||||
|
||||
/// <summary>
|
||||
@ -981,12 +986,5 @@ namespace SharedLibraryCore
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
#if DEBUG == true
|
||||
public static string ToSql<TEntity>(this IQueryable<TEntity> query) where TEntity : class
|
||||
{
|
||||
return "";
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user