Correction PDF
This commit is contained in:
@@ -39,4 +39,15 @@
|
||||
<ul id="neededIngredients" class="hf-grid"></ul>
|
||||
</section>
|
||||
|
||||
@{
|
||||
var currentUser = Context.Session.GetString("UserName") ?? "";
|
||||
bool isCore = currentUser.Equals("Mae", StringComparison.OrdinalIgnoreCase)
|
||||
|| currentUser.Equals("Byakuya", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
<script>
|
||||
window.CURRENT_USER = @Html.Raw(System.Text.Json.JsonSerializer.Serialize(currentUser));
|
||||
window.IS_CORE_USER = @Html.Raw(isCore.ToString().ToLower());
|
||||
// 👉 liste blanche pour la vue "partagée"
|
||||
window.CORE_USERS = ["Mae","Byakuya"];
|
||||
</script>
|
||||
<script src="~/js/HelloFresh/ingredients.js" asp-append-version="true"></script>
|
||||
|
||||
Reference in New Issue
Block a user